-
Notifications
You must be signed in to change notification settings - Fork 5
/
pythonic.js
99 lines (66 loc) · 2.65 KB
/
pythonic.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
const discord = require('discord.js')
const Client = new discord.Client
Client.on("ready", () => {
console.log('anan')
})
Client.once("message", msg => {
let flaggie = msg.author.flags
if (flaggie.any('PARTNERED_SERVER_OWNER')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804983845345820702')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('DISCORD_EMPLOYEE')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804982001916051467')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('HYPESQUAD_EVENTS')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804984405193392149')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('BUGHUNTER_LEVEL_1')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804984302680145951')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('HOUSE_BRAVERY')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804984007053672478')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('HOUSE_BRILLIANCE')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804984183398727741')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('HOUSE_BALANCE')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804984180311851018')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('EARLY_SUPPORTER')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804983994546126858')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('TEAM_USER')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804982001916051467')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('BUGHUNTER_LEVEL_2')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804984302680145951')
let stg = msg.guild.member(member)
stg. roles.add(partner)
} if (flaggie.any('VERIFIED_DEVELOPER')) {
let member = msg.author
const partner = msg.guild.roles.cache.find(r => r.id === '804983926523297793')
let stg = msg.guild.member(member)
stg. roles.add(partner)
}
}
)
Client.login('token')