Add /loop support for individual songs (#707)

This commit is contained in:
Cleo 2022-06-25 20:20:45 -04:00 committed by GitHub
parent eb07ac6d22
commit 6cdfefe174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 4 deletions

View file

@ -37,6 +37,7 @@ import Unskip from './commands/unskip.js';
import ThirdParty from './services/third-party.js';
import FileCacheProvider from './services/file-cache.js';
import KeyValueCacheProvider from './services/key-value-cache.js';
import Loop from './commands/loop';
const container = new Container();
@ -79,6 +80,7 @@ container.bind<SpotifyAPI>(TYPES.Services.SpotifyAPI).to(SpotifyAPI).inSingleton
Next,
Stop,
Unskip,
Loop,
].forEach(command => {
container.bind<Command>(TYPES.Command).to(command).inSingletonScope();
});