/[sudobot]/trunk/src/client/Client.ts
ViewVC logotype

Diff of /trunk/src/client/Client.ts

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

revision 127 by rakin, Mon Jul 29 17:28:42 2024 UTC revision 227 by rakin, Mon Jul 29 17:29:07 2024 UTC
# Line 21  import BaseCLICommand from '../utils/str Line 21  import BaseCLICommand from '../utils/str
21  import discordModals from 'discord-modals';  import discordModals from 'discord-modals';
22  import SpamFilter from '../automod/SpamFilter';  import SpamFilter from '../automod/SpamFilter';
23  import Verification from '../services/Verification';  import Verification from '../services/Verification';
24    import Welcomer from '../services/Welcomer';
25    import Antijoin from '../automod/Antijoin';
26    import Automute from '../automod/Automute';
27    
28  export default class DiscordClient extends Client {  export default class DiscordClient extends Client {
29      private _commands = new Collection<string, BaseCommand>();      private _commands = new Collection<string, BaseCommand>();
# Line 47  export default class DiscordClient exten Line 50  export default class DiscordClient exten
50      randomStatus: RandomStatus;      randomStatus: RandomStatus;
51      debugLogger: DebugLogger;      debugLogger: DebugLogger;
52      verification: Verification;      verification: Verification;
53        welcomer: Welcomer;
54        antijoin: Antijoin;
55        automute: Automute;
56    
57      static client: DiscordClient;      static client: DiscordClient;
58    
# Line 54  export default class DiscordClient exten Line 60  export default class DiscordClient exten
60          super({          super({
61              ws: {              ws: {
62                  properties: {                  properties: {
63                      $browser: "Discord iOS"                      browser: "Discord iOS"
64                  }                  }
65              },              },
66              ...options              ...options
# Line 83  export default class DiscordClient exten Line 89  export default class DiscordClient exten
89          this.randomStatus = new RandomStatus(this);          this.randomStatus = new RandomStatus(this);
90          this.debugLogger = new DebugLogger(this);          this.debugLogger = new DebugLogger(this);
91          this.verification = new Verification(this);          this.verification = new Verification(this);
92            this.welcomer = new Welcomer(this);
93            this.antijoin = new Antijoin(this);
94            this.automute = new Automute(this);
95                    
96          discordModals(this);                  discordModals(this);        
97      }      }

Legend:
Removed from v.127  
changed lines
  Added in v.227

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26