mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
18 lines
540 B
JavaScript
18 lines
540 B
JavaScript
module.exports = {
|
|
name: 'stop',
|
|
description: 'Stop command.',
|
|
alias: 's',
|
|
usage: '',
|
|
permission: 'none',
|
|
category: 'music',
|
|
execute(msg, args, client, Discord, command) {
|
|
const radio = client.radio.get(msg.guild.id);
|
|
if (client.funcs.check(client, msg, command)) {
|
|
client.funcs.statisticsUpdate(client, msg.guild, radio);
|
|
radio.connection.dispatcher.destroy();
|
|
radio.voiceChannel.leave();
|
|
client.radio.delete(msg.guild.id);
|
|
msg.channel.send(client.messageEmojis["stop"] + client.messages.stop);
|
|
}
|
|
}
|
|
}; |