mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53: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);
|
|
}
|
|
}
|
|
}; |