mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-11 12:21:37 +02:00
Refactor play command
This commit is contained in:
parent
c058ec95fe
commit
7844e80991
8 changed files with 239 additions and 210 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue