aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Kendzia <[email protected]>2022-04-23 17:55:17 +0200
committerGitHub <[email protected]>2022-04-23 10:55:17 -0500
commit6495c44c6850876fc28bad0922be4b6c60d49948 (patch)
treeb0774fc6d0e4322a26d65c98b3ffa9332a62432c /src
parent7a190a526bf44915f06c0b1262f58626311a918b (diff)
downloadmuse-6495c44c6850876fc28bad0922be4b6c60d49948.tar.xz
muse-6495c44c6850876fc28bad0922be4b6c60d49948.zip
add /next command as alias for /skip (#629)
Co-authored-by: Max Isom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/commands/next.ts10
-rw-r--r--src/inversify.config.ts2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/commands/next.ts b/src/commands/next.ts
new file mode 100644
index 0000000..a9796c0
--- /dev/null
+++ b/src/commands/next.ts
@@ -0,0 +1,10 @@
+import {injectable} from 'inversify';
+import Skip from './skip.js';
+import {SlashCommandBuilder} from '@discordjs/builders';
+
+@injectable()
+export default class extends Skip {
+ public readonly slashCommand = new SlashCommandBuilder()
+ .setName('next')
+ .setDescription('skip to the next song');
+}
diff --git a/src/inversify.config.ts b/src/inversify.config.ts
index 2119b98..e4c30e3 100644
--- a/src/inversify.config.ts
+++ b/src/inversify.config.ts
@@ -31,6 +31,7 @@ import Resume from './commands/resume.js';
import Seek from './commands/seek.js';
import Shuffle from './commands/shuffle.js';
import Skip from './commands/skip.js';
+import Next from './commands/next.js';
import Stop from './commands/stop.js';
import Unskip from './commands/unskip.js';
import ThirdParty from './services/third-party.js';
@@ -77,6 +78,7 @@ container.bind<SpotifyAPI>(TYPES.Services.SpotifyAPI).to(SpotifyAPI).inSingleton
Seek,
Shuffle,
Skip,
+ Next,
Stop,
Unskip,
].forEach(command => {