/[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 81 by rakin, Mon Jul 29 17:28:31 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    import discordModals from 'discord-modals';
23    
24  export default class DiscordClient extends Client {  export default class DiscordClient extends Client {
25      private _commands = new Collection<string, BaseCommand>();      private _commands = new Collection<string, BaseCommand>();
26        private _cliCommands = new Collection<string, BaseCLICommand>();
27      private _events = new Collection<string, BaseEvent>();      private _events = new Collection<string, BaseEvent>();
28    
29      rootdir: string;      rootdir: string;
# Line 32  export default class DiscordClient exten Line 40  export default class DiscordClient exten
40      antiraid: AntiRaid;      antiraid: AntiRaid;
41      starboard: Starboard;      starboard: Starboard;
42      server: Server;      server: Server;
43        cooldown: Cooldown;
44        startupManager: StartupManager;
45        autoClear: AutoClear;
46        randomStatus: RandomStatus;
47        debugLogger: DebugLogger;
48    
49      static client: DiscordClient;      static client: DiscordClient;
50    
# Line 58  export default class DiscordClient exten Line 71  export default class DiscordClient exten
71          this.antiraid = new AntiRaid(this);          this.antiraid = new AntiRaid(this);
72          this.starboard = new Starboard(this);          this.starboard = new Starboard(this);
73          this.server = new Server(this);          this.server = new Server(this);
74            this.cooldown = new Cooldown(this);
75            this.startupManager = new StartupManager(this);
76            this.autoClear = new AutoClear(this);
77            this.randomStatus = new RandomStatus(this);
78            this.debugLogger = new DebugLogger(this);
79                    
80          DiscordClient.client = this;          DiscordClient.client = this;
81            discordModals(this);
82      }      }
83    
84      get commands(): Collection<string, BaseCommand> {      get commands(): Collection<string, BaseCommand> {
85          return this._commands;          return this._commands;
86      }      }
87    
88        get cliCommands(): Collection<string, BaseCLICommand> {
89            return this._cliCommands;
90        }
91    
92      get events(): Collection<string, BaseEvent> {      get events(): Collection<string, BaseEvent> {
93          return this._events;          return this._events;
94      }      }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26