diff options
| author | 8cy <[email protected]> | 2020-04-07 10:21:53 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-07 10:21:53 -0700 |
| commit | 3c8023f23931f8573bdf27ed8f3e674c04ff7eaa (patch) | |
| tree | ade3a418304befa9f8576128ea7dc595b590273e /commands/join.js | |
| parent | add yt test, 1.3.0 (diff) | |
| download | s5nical-3c8023f23931f8573bdf27ed8f3e674c04ff7eaa.tar.xz s5nical-3c8023f23931f8573bdf27ed8f3e674c04ff7eaa.zip | |
port all the stuff from app.js to commands/
Diffstat (limited to 'commands/join.js')
| -rw-r--r-- | commands/join.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/commands/join.js b/commands/join.js new file mode 100644 index 0000000..15ef1de --- /dev/null +++ b/commands/join.js @@ -0,0 +1,15 @@ +module.exports = { + name: 'join', + aliases: ['j'], + description: '', + execute(msg, args, bot) { + if (!msg.guild.voiceConnection && msg.member.voiceChannel) { + msg.member.voiceChannel.join(); + msg.reply('succesfully joined voice channel'); + } else if (msg.guild.voiceConnection) { + msg.reply('i\'m already in voice channel'); + } else if (!msg.member.voiceChannel) { + msg.reply('you\'re not in a voice channel'); + } + } +}
\ No newline at end of file |