/[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 71 by rakin, Mon Jul 29 17:28:28 2024 UTC revision 77 by rakin, Mon Jul 29 17:28:30 2024 UTC
# Line 17  import Cooldown from '../automod/Cooldow Line 17  import Cooldown from '../automod/Cooldow
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';  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 40  export default class DiscordClient exten Line 43  export default class DiscordClient exten
43      startupManager: StartupManager;      startupManager: StartupManager;
44      autoClear: AutoClear;      autoClear: AutoClear;
45      randomStatus: RandomStatus;      randomStatus: RandomStatus;
46        debugLogger: DebugLogger;
47    
48      static client: DiscordClient;      static client: DiscordClient;
49    
# Line 70  export default class DiscordClient exten Line 74  export default class DiscordClient exten
74          this.startupManager = new StartupManager(this);          this.startupManager = new StartupManager(this);
75          this.autoClear = new AutoClear(this);          this.autoClear = new AutoClear(this);
76          this.randomStatus = new RandomStatus(this);          this.randomStatus = new RandomStatus(this);
77            this.debugLogger = new DebugLogger(this);
78                    
79          DiscordClient.client = this;          DiscordClient.client = this;
80      }      }
# Line 78  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.71  
changed lines
  Added in v.77

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26