summaryrefslogtreecommitdiff
path: root/commands/join.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/join.js')
-rw-r--r--commands/join.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/commands/join.js b/commands/join.js
new file mode 100644
index 0000000..b07e6c7
--- /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