From 49d9b04d05e6fb2bd8ce5e094f5846550f8f184e Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 10 Jul 2019 14:03:02 +0300 Subject: [PATCH] Update index.js --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 3b9d4323..cb5c425f 100644 --- a/index.js +++ b/index.js @@ -78,6 +78,12 @@ client.on('message', async msg => { msg.channel.send('Invite me with: https://bit.ly/2V3D0p7') return undefined; } + if (command === `${PREFIX}forcestop`) { + if (msg.author.username === 'Matte') { + serverQueue.songs = []; + serverQueue.connection.dispatcher.end('forced to stop'); + } + } if (msg.member.guild.roles.find(x => x.name === 'DJ')) { if (msg.member.roles.find(x => x.name === 'DJ')) { const args = msg.content.split(' ');