/[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 51 by rakin, Mon Jul 29 17:28:23 2024 UTC revision 77 by rakin, Mon Jul 29 17:28:30 2024 UTC
# Line 13  import MessageFilter from '../automod/Me Line 13  import MessageFilter from '../automod/Me
13  import AntiRaid from '../automod/AntiRaid';  import AntiRaid from '../automod/AntiRaid';
14  import Starboard from '../services/Starboard';  import Starboard from '../services/Starboard';
15  import Server from '../api/Server';  import Server from '../api/Server';
16    import Cooldown from '../automod/Cooldown';
17    import StartupManager from '../services/StartupManager';
18    import AutoClear from '../automod/AutoClear';
19    import RandomStatus from '../services/RandomStatus';
20    import DebugLogger from '../services/DebugLogger';
21    import BaseCLICommand from '../utils/structures/BaseCLICommand';
22    
23  export default class DiscordClient extends Client {  export default class DiscordClient extends Client {
24      private _commands = new Collection<string, BaseCommand>();      private _commands = new Collection<string, BaseCommand>();
25        private _cliCommands = new Collection<string, BaseCLICommand>();
26      private _events = new Collection<string, BaseEvent>();      private _events = new Collection<string, BaseEvent>();
27    
28      rootdir: string;      rootdir: string;
# Line 32  export default class DiscordClient exten Line 39  export default class DiscordClient exten
39      antiraid: AntiRaid;      antiraid: AntiRaid;
40      starboard: Starboard;      starboard: Starboard;
41      server: Server;      server: Server;
42        cooldown: Cooldown;
43        startupManager: StartupManager;
44        autoClear: AutoClear;
45        randomStatus: RandomStatus;
46        debugLogger: DebugLogger;
47    
48      static client: DiscordClient;      static client: DiscordClient;
49    
# Line 58  export default class DiscordClient exten Line 70  export default class DiscordClient exten
70          this.antiraid = new AntiRaid(this);          this.antiraid = new AntiRaid(this);
71          this.starboard = new Starboard(this);          this.starboard = new Starboard(this);
72          this.server = new Server(this);          this.server = new Server(this);
73            this.cooldown = new Cooldown(this);
74            this.startupManager = new StartupManager(this);
75            this.autoClear = new AutoClear(this);
76            this.randomStatus = new RandomStatus(this);
77            this.debugLogger = new DebugLogger(this);
78                    
79          DiscordClient.client = this;          DiscordClient.client = this;
80      }      }
# Line 66  export default class DiscordClient exten Line 83  export default class DiscordClient exten
83          return this._commands;          return this._commands;
84      }      }
85    
86        get cliCommands(): Collection<string, BaseCLICommand> {
87            return this._cliCommands;
88        }
89    
90      get events(): Collection<string, BaseEvent> {      get events(): Collection<string, BaseEvent> {
91          return this._events;          return this._events;
92      }      }

Legend:
Removed from v.51  
changed lines
  Added in v.77

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26