-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbutts.js
53 lines (47 loc) · 997 Bytes
/
butts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {
assignAllUsers,
selectUsersFromQueue,
flipQueue,
printTeams,
getWhispers,
join,
} from "./faction.js"
const testUsersId = Array(2)
.fill()
.map(() => Math.round(Math.random() * 10000000).toString())
const testQueue = testUsersId.map((x, index) => {
return {
user_id: x,
user_name: `testName${x}`,
queued: true,
games_played: 0,
}
})
const factions = [
{
color: "blue",
discordChannel:
"https://discord.com/channels/965039544183431188/965077230952804362",
users: [],
},
{
color: "green",
discordChannel:
"https://discord.com/channels/965039544183431188/965077230952804362",
users: [],
},
{
color: "yellow",
discordChannel:
"https://discord.com/channels/965039544183431188/965077230952804362",
users: [],
},
]
let test = assignAllUsers(testUsersId, factions)
console.log(printTeams(test))
const testMember = {
user: {
id: "239nfd3884209",
username: "gettwitchy27",
},
}