From cfcdf359f54df767110a17b9264989aa4159f002 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Wed, 29 Apr 2020 20:59:35 +1000 Subject: [PATCH] added playnext --- commands/playnext.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 commands/playnext.js diff --git a/commands/playnext.js b/commands/playnext.js new file mode 100644 index 0000000..71afda9 --- /dev/null +++ b/commands/playnext.js @@ -0,0 +1,23 @@ +// Copyright 2020 Emily J. / mudkipscience and contributors. Subject to the AGPLv3 license. + +exports.conf = { + enabled: true, + guildOnly: true, + aliases: [], + permLevel: 'User', + requiredPerms: ['CONNECT', 'SPEAK'], + cooldown: 5000 +} + +exports.help = { + name: 'playnext', + category: 'Music', + description: 'Similar to play, but adds it to the start of the queue instead of the end.', + usage: 'playnext [song]', + parameters: '[song] - The name or youtube URL of the song you want to play.' +} + +const { play } = require('../utils/music') +exports.run = async (client, message, args, level, data) => { + await play(client, data.guild.music, message, args.join(' '), true) +}