/[sudobot]/trunk/src/AntiRaid.js
ViewVC logotype

Diff of /trunk/src/AntiRaid.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10 by rakin, Mon Jul 29 17:28:12 2024 UTC revision 20 by rakin, Mon Jul 29 17:28:14 2024 UTC
# Line 9  module.exports = class AntiRaid { Line 9  module.exports = class AntiRaid {
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(() => {

Legend:
Removed from v.10  
changed lines
  Added in v.20

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26