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 |
|
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; |
44 |
startupManager: StartupManager; |
startupManager: StartupManager; |
45 |
autoClear: AutoClear; |
autoClear: AutoClear; |
46 |
randomStatus: RandomStatus; |
randomStatus: RandomStatus; |
47 |
|
debugLogger: DebugLogger; |
48 |
|
|
49 |
static client: DiscordClient; |
static client: DiscordClient; |
50 |
|
|
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); |
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 |
} |
} |