summaryrefslogtreecommitdiff
path: root/commands/leave.js
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-07 10:21:53 -0700
committer8cy <[email protected]>2020-04-07 10:21:53 -0700
commit3c8023f23931f8573bdf27ed8f3e674c04ff7eaa (patch)
treeade3a418304befa9f8576128ea7dc595b590273e /commands/leave.js
parentadd yt test, 1.3.0 (diff)
downloads5nical-3c8023f23931f8573bdf27ed8f3e674c04ff7eaa.tar.xz
s5nical-3c8023f23931f8573bdf27ed8f3e674c04ff7eaa.zip
port all the stuff from app.js to commands/
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