woomy/src/commands/play.js

26 lines
674 B
JavaScript
Raw Normal View History

const { play } = require('../modules/music')
2020-01-25 10:02:43 +00:00
const Discord = require("discord.js")
module.exports.run = async (client, message, args, level) =>{
if (!args[0]) {
return message.channel.send(`<:error:466995152976871434> You didn't give me a song name or YouTube URL! Usage: \`${client.commands.get('play').help.usage}\``)
}
2020-01-25 10:02:43 +00:00
await play(client, message, args.join(' '), false)
2020-01-25 10:02:43 +00:00
}
exports.conf = {
enabled: true,
guildOnly: true,
2020-01-25 12:51:58 +00:00
aliases: ["p"],
2020-01-25 10:02:43 +00:00
permLevel: "User",
requiredPerms: ["CONNECT", "SPEAK"]
};
exports.help = {
name: "play",
category: "Music",
description: 'Plays the song you request, or adds it to the queue.',
2021-09-17 02:38:25 +00:00
usage: 'play [song]',
2020-01-25 10:02:43 +00:00
};