Code Refactoring

* Adds Config for commands
* Moved Casual Messages to language.json
This commit is contained in:
Indrajith K L
2021-03-27 21:57:16 +05:30
parent 6048206733
commit e3dba82cf3
9 changed files with 259 additions and 223 deletions

17
src/commands/stop.js Normal file
View File

@@ -0,0 +1,17 @@
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);
}
}