Files
radio-bot/src/commands/stop.js
Indrajith K L e3dba82cf3 Code Refactoring
* Adds Config for commands
* Moved Casual Messages to language.json
2021-03-27 21:57:16 +05:30

17 lines
504 B
JavaScript

async function stopMusik(client,message) {
const voiceChannel = message.member.voice.channel;
if (!voiceChannel) {
return message.channel.send("Join a voice channel to Execute this command");
}
await voiceChannel.leave();
await message.channel.send("Stoping Music... Baye Baye.... 😅");
client.user.setPresence({ activity: { name: `COMMANDS`, type: 'LISTENING' } });
}
module.exports = {
execute(client,message, args) {
stopMusik(client, message);
}
}