diff options
| author | Max Isom <[email protected]> | 2021-09-19 19:50:25 -0400 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2021-09-19 19:50:25 -0400 |
| commit | efcdeb78c8b690bc544dac1ed0be96a6693bcff6 (patch) | |
| tree | d4a453f92d928613c2f4209af7475190a093321d /src/bot.ts | |
| parent | 79e7e88fab1ce05cf84abeba2e05300a93b4759c (diff) | |
| download | muse-efcdeb78c8b690bc544dac1ed0be96a6693bcff6.tar.xz muse-efcdeb78c8b690bc544dac1ed0be96a6693bcff6.zip | |
Reorg third party services & config
Diffstat (limited to 'src/bot.ts')
| -rw-r--r-- | src/bot.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,6 +10,7 @@ import handleGuildCreate from './events/guild-create'; import handleVoiceStateUpdate from './events/voice-state-update'; import errorMsg from './utils/error-msg'; import {isUserInVoice} from './utils/channels'; +import Config from './services/config'; @injectable() export default class { @@ -18,10 +19,10 @@ export default class { private readonly token: string; private readonly commands!: Collection<string, Command>; - constructor(@inject(TYPES.Client) client: Client, @inject(TYPES.Services.NaturalLanguage) naturalLanguage: NaturalLanguage, @inject(TYPES.Config.DISCORD_TOKEN) token: string) { + constructor(@inject(TYPES.Client) client: Client, @inject(TYPES.Services.NaturalLanguage) naturalLanguage: NaturalLanguage, @inject(TYPES.Config) config: Config) { this.client = client; this.naturalLanguage = naturalLanguage; - this.token = token; + this.token = config.DISCORD_TOKEN; this.commands = new Collection(); } |
