Refactor play command

This commit is contained in:
Max Isom 2020-03-17 21:36:48 -05:00
parent c058ec95fe
commit 7844e80991
8 changed files with 239 additions and 210 deletions

View file

@ -19,6 +19,9 @@ import {
import PlayerManager from './managers/player';
import QueueManager from './managers/queue';
// Helpers
import GetSongs from './services/get-songs';
// Comands
import Command from './commands';
import Clear from './commands/clear';
@ -44,6 +47,9 @@ container.bind<Client>(TYPES.Client).toConstantValue(new Client());
container.bind<PlayerManager>(TYPES.Managers.Player).to(PlayerManager).inSingletonScope();
container.bind<QueueManager>(TYPES.Managers.Queue).to(QueueManager).inSingletonScope();
// Helpers
container.bind<GetSongs>(TYPES.Services.GetSongs).to(GetSongs).inSingletonScope();
// Commands
container.bind<Command>(TYPES.Command).to(Clear).inSingletonScope();
container.bind<Command>(TYPES.Command).to(Config).inSingletonScope();