diff options
| author | Max Isom <[email protected]> | 2021-09-19 22:04:34 -0400 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2021-09-19 22:09:09 -0400 |
| commit | fd782219eff8016a00e87f0c8e44af3a3ba74be6 (patch) | |
| tree | 2de37667318794427406b45848a7bf699c9e1a6f /src/inversify.config.ts | |
| parent | efcdeb78c8b690bc544dac1ed0be96a6693bcff6 (diff) | |
| download | muse-fd782219eff8016a00e87f0c8e44af3a3ba74be6.tar.xz muse-fd782219eff8016a00e87f0c8e44af3a3ba74be6.zip | |
Move to ESM, use ytsr, implement caching
Closes #315
Diffstat (limited to 'src/inversify.config.ts')
| -rw-r--r-- | src/inversify.config.ts | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/src/inversify.config.ts b/src/inversify.config.ts index 0b60f6f..1aa367d 100644 --- a/src/inversify.config.ts +++ b/src/inversify.config.ts @@ -1,33 +1,34 @@ import 'reflect-metadata'; import {Container} from 'inversify'; -import {TYPES} from './types'; -import Bot from './bot'; +import {TYPES} from './types.js'; +import Bot from './bot.js'; import {Client} from 'discord.js'; -import ConfigProvider from './services/config'; +import ConfigProvider from './services/config.js'; // Managers -import PlayerManager from './managers/player'; +import PlayerManager from './managers/player.js'; // Helpers -import GetSongs from './services/get-songs'; -import NaturalLanguage from './services/natural-language-commands'; +import GetSongs from './services/get-songs.js'; +import NaturalLanguage from './services/natural-language-commands.js'; // Comands import Command from './commands'; -import Clear from './commands/clear'; -import Config from './commands/config'; -import Disconnect from './commands/disconnect'; -import ForwardSeek from './commands/fseek'; -import Help from './commands/help'; -import Pause from './commands/pause'; -import Play from './commands/play'; -import QueueCommad from './commands/queue'; -import Seek from './commands/seek'; -import Shortcuts from './commands/shortcuts'; -import Shuffle from './commands/shuffle'; -import Skip from './commands/skip'; -import Unskip from './commands/unskip'; -import ThirdParty from './services/third-party'; +import Clear from './commands/clear.js'; +import Config from './commands/config.js'; +import Disconnect from './commands/disconnect.js'; +import ForwardSeek from './commands/fseek.js'; +import Help from './commands/help.js'; +import Pause from './commands/pause.js'; +import Play from './commands/play.js'; +import QueueCommad from './commands/queue.js'; +import Seek from './commands/seek.js'; +import Shortcuts from './commands/shortcuts.js'; +import Shuffle from './commands/shuffle.js'; +import Skip from './commands/skip.js'; +import Unskip from './commands/unskip.js'; +import ThirdParty from './services/third-party.js'; +import CacheProvider from './services/cache.js'; let container = new Container(); @@ -67,4 +68,6 @@ container.bind(TYPES.Config).toConstantValue(new ConfigProvider()); // Static libraries container.bind(TYPES.ThirdParty).to(ThirdParty); +container.bind(TYPES.Cache).to(CacheProvider); + export default container; |
