diff options
Diffstat (limited to 'src/commands/stop.js')
-rw-r--r-- | src/commands/stop.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/commands/stop.js b/src/commands/stop.js new file mode 100644 index 0000000..0c5e3df --- /dev/null +++ b/src/commands/stop.js @@ -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); + } +}
\ No newline at end of file |