From a8c058f09667e20dfe14c65fa3d136f206757513 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Sun, 25 Oct 2020 23:40:03 +0000 Subject: [PATCH] fix(*): Fix bug with wrong variable name --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 05e5b74..f6a4f38 100644 --- a/index.js +++ b/index.js @@ -124,8 +124,8 @@ client.on('message', function (message) { message.channel.send(`The queue is already empty...`); console.log(`${message.author.username} attmepted to clear the queue but it was already empty.`); } - else{ - rankedList = []; + else { + playerQueue = []; message.channel.send(`The queue has been cleared!`); console.log(`${message.author.username} cleared the queue.`); }