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; |
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 |
|
|
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 |
} |
} |
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 |
} |
} |