woomy/commands/play.js

24 lines
654 B
JavaScript
Raw Normal View History

2020-04-20 04:52:50 +00:00
// Copyright 2020 Emily J. / mudkipscience and contributors. Subject to the AGPLv3 license.
2020-04-20 03:02:10 +00:00
2020-04-09 07:54:18 +00:00
exports.conf = {
enabled: true,
2020-04-11 14:40:35 +00:00
guildOnly: true,
2020-04-09 07:54:18 +00:00
aliases: [],
permLevel: 'User',
2020-04-21 09:14:49 +00:00
requiredPerms: ['CONNECT', 'SPEAK'],
cooldown: 5000
2020-04-09 07:54:18 +00:00
}
exports.help = {
name: 'play',
category: 'Music',
2020-04-29 10:59:58 +00:00
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.'
2020-04-09 07:54:18 +00:00
}
2020-04-19 10:10:52 +00:00
const { play } = require('../utils/music')
exports.run = async (client, message, args, level, data) => {
2020-04-29 10:59:58 +00:00
await play(client, data.guild.music, message, args.join(' '), false)
2020-04-13 04:28:53 +00:00
}