eximiabots-radiox/commands/stop.js
2020-03-02 21:38:42 +02:00

19 lines
489 B
JavaScript

module.exports = {
name: 'stop',
description: 'Stop command.',
alias: 'none',
usage: '',
onlyDev: false,
permission: 'MANAGE_CHANNELS',
category: 'music',
execute(msg, args, client, Discord, prefix, command) {
const radio = client.radio.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
radio.songs = [];
radio.looping = false;
radio.connection.dispatcher.end('Stopped');
msg.channel.send('<:stop:674685626108477519> Stopped the music!')
}
}
};