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',
|
|
|
|
requiredPerms: [],
|
2020-04-13 04:28:53 +00:00
|
|
|
cooldown: 2000
|
2020-04-09 07:54:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
exports.help = {
|
|
|
|
name: 'play',
|
|
|
|
category: 'Music',
|
|
|
|
description: 'Plays or adds to queue requested music.',
|
|
|
|
usage: 'play [query]',
|
2020-04-12 09:15:31 +00:00
|
|
|
parameters: '[query] - A query to find video by or a link to the video.'
|
2020-04-09 07:54:18 +00:00
|
|
|
}
|
|
|
|
|
2020-04-19 10:10:52 +00:00
|
|
|
const { play } = require('../utils/music')
|
2020-04-14 05:28:25 +00:00
|
|
|
exports.run = async (client, message, args, level, data) => {
|
2020-04-19 10:10:52 +00:00
|
|
|
await play(client, message, args.join(' '))
|
2020-04-13 04:28:53 +00:00
|
|
|
}
|