Code Refactoring
* Adds Config for commands * Moved Casual Messages to language.json
This commit is contained in:
17
src/commands/stop.js
Normal file
17
src/commands/stop.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user