From f5350de569c2812739fc5d59b06761070a4c9834 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Sun, 25 Oct 2020 23:17:26 +0000 Subject: [PATCH] feat(*): Add working show queue command --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index 1a1acb1..a35b898 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,7 @@ client.once('ready', () =>{ * Commands: * q - Join the queue * lq - Leave the queue + * sq - Show the queue */ function generateRandomCode() { @@ -104,4 +105,11 @@ client.on('message', function (message) { message.delete(); message.channel.send(`${message.author.username} you can't leave the queue before you've joined it!`); } + + // Show the queue + if(command === 'sq') { + // Delete the message with the bot command + message.delete(); + checkQueue(message); + } });