update music to support playnext

This commit is contained in:
Emily 2020-04-29 20:59:58 +10:00
parent cfcdf359f5
commit caeeafa3bb
2 changed files with 15 additions and 8 deletions

View file

@ -12,12 +12,12 @@ exports.conf = {
exports.help = {
name: 'play',
category: 'Music',
description: 'Plays or adds to queue requested music.',
usage: 'play [query]',
parameters: '[query] - A query to find video by or a link to the video.'
description: 'Plays the song you request, or adds it to the queue.',
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(' '))
await play(client, data.guild.music, message, args.join(' '), false)
}