/[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 65 by rakin, Mon Jul 29 17:28:27 2024 UTC revision 81 by rakin, Mon Jul 29 17:28:31 2024 UTC
# Line 16  import Server from '../api/Server'; Line 16  import Server from '../api/Server';
16  import Cooldown from '../automod/Cooldown';  import Cooldown from '../automod/Cooldown';
17  import StartupManager from '../services/StartupManager';  import StartupManager from '../services/StartupManager';
18  import AutoClear from '../automod/AutoClear';  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 38  export default class DiscordClient exten Line 43  export default class DiscordClient exten
43      cooldown: Cooldown;      cooldown: Cooldown;
44      startupManager: StartupManager;      startupManager: StartupManager;
45      autoClear: AutoClear;      autoClear: AutoClear;
46        randomStatus: RandomStatus;
47        debugLogger: DebugLogger;
48    
49      static client: DiscordClient;      static client: DiscordClient;
50    
# Line 67  export default class DiscordClient exten Line 74  export default class DiscordClient exten
74          this.cooldown = new Cooldown(this);          this.cooldown = new Cooldown(this);
75          this.startupManager = new StartupManager(this);          this.startupManager = new StartupManager(this);
76          this.autoClear = new AutoClear(this);          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.65  
changed lines
  Added in v.81

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26