diff options
| author | s1n <[email protected]> | 2020-04-07 10:40:25 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-07 10:40:25 -0700 |
| commit | 67e11c6747ea02b61d1b0604cf650ed03f294e01 (patch) | |
| tree | 67f050cc81dea4b9b21f0d0349ecbdb263ecf221 /commands/join.js | |
| parent | add yt test, 1.3.0 (diff) | |
| parent | final test push before master (diff) | |
| download | s5nical-67e11c6747ea02b61d1b0604cf650ed03f294e01.tar.xz s5nical-67e11c6747ea02b61d1b0604cf650ed03f294e01.zip | |
Merge pull request #1 from 8cy/test
major codebase refactor, v1.3.0
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..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 |