summaryrefslogtreecommitdiff
path: root/commands/leave.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/leave.js')
-rw-r--r--commands/leave.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/leave.js b/commands/leave.js
new file mode 100644
index 0000000..51fac82
--- /dev/null
+++ b/commands/leave.js
@@ -0,0 +1,12 @@
+module.exports = {
+ name: 'leave',
+ description: '',
+ execute(msg, args, bot) {
+ if (msg.guild.voiceConnection) {
+ msg.guild.voiceConnection.disconnect();
+ msg.reply('succesfully left voice channel');
+ } else {
+ msg.reply('i\'m not in a voice channel');
+ }
+ }
+} \ No newline at end of file