mirror of
https://github.com/hazemKrimi/discord-bot.git
synced 2026-05-01 18:30:25 +00:00
added join and leave commands
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
name: 'join',
|
||||
description: 'joins a voice channel',
|
||||
execute: async (message, voiceChannel, args) => {
|
||||
connection = await voiceChannel.join();
|
||||
connection.play('https://www.youtube.com/watch?v=Hl1s4BT9Fc4');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user