/[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 58 by rakin, Mon Jul 29 17:28:25 2024 UTC revision 77 by rakin, Mon Jul 29 17:28:30 2024 UTC
# Line 15  import Starboard from '../services/Starb Line 15  import Starboard from '../services/Starb
15  import Server from '../api/Server';  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';
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 36  export default class DiscordClient exten Line 41  export default class DiscordClient exten
41      server: Server;      server: Server;
42      cooldown: Cooldown;      cooldown: Cooldown;
43      startupManager: StartupManager;      startupManager: StartupManager;
44        autoClear: AutoClear;
45        randomStatus: RandomStatus;
46        debugLogger: DebugLogger;
47    
48      static client: DiscordClient;      static client: DiscordClient;
49    
# Line 64  export default class DiscordClient exten Line 72  export default class DiscordClient exten
72          this.server = new Server(this);          this.server = new Server(this);
73          this.cooldown = new Cooldown(this);          this.cooldown = new Cooldown(this);
74          this.startupManager = new StartupManager(this);          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 72  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.58  
changed lines
  Added in v.77

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26