9 |
this.maxJoins = app.config.props[guild.id].raid.max_joins; |
this.maxJoins = app.config.props[guild.id].raid.max_joins; |
10 |
this.included = app.config.props[guild.id].raid.included; |
this.included = app.config.props[guild.id].raid.included; |
11 |
this.time = app.config.props[guild.id].raid.time; |
this.time = app.config.props[guild.id].raid.time; |
12 |
|
this.enabled = app.config.props[guild.id].raid.enabled; |
13 |
} |
} |
14 |
|
|
15 |
async start(member) { |
async start(member) { |
16 |
|
if (member.user.bot) { |
17 |
|
console.log('bot'); |
18 |
|
return; |
19 |
|
} |
20 |
|
|
21 |
await this.load(member.guild); |
await this.load(member.guild); |
22 |
|
|
23 |
|
if (!this.enabled) |
24 |
|
return; |
25 |
|
|
26 |
console.log('Joined'); |
console.log('Joined'); |
27 |
|
|
28 |
setTimeout(() => { |
setTimeout(() => { |