From c779d3b78871ab7ae2eea97289d87ae3108360be Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Mon, 26 Oct 2020 00:18:57 +0000 Subject: [PATCH] refactor(*): Clarify comments --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index b5eb495..21e5057 100644 --- a/index.js +++ b/index.js @@ -107,7 +107,7 @@ client.on('message', function (message) { const args = commandBody.split(' '); const command = args.shift().toLowerCase(); - // Add to queue + // Join the queue if (command === 'q' && !(playerQueue.includes(message.author))) { // Delete the message with the bot command message.delete(); @@ -125,7 +125,7 @@ client.on('message', function (message) { message.channel.send(`${message.author.username} is too keen, you're already in the queue mate!`); } - // Remove from queue + // Leave the queue if(command === 'lq' && (playerQueue.includes(message.author))){ // Delete the message with the bot command message.delete(); @@ -171,7 +171,7 @@ client.on('message', function (message) { } } - // Remove a tagged user from queue + // Remove a tagged user from the queue if (command === 'ru' && args[0]) { const user = getUserFromMention(args[0]);