From 73906e19572ad927fd80fc4c4131828c2a79a2cf Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Sun, 29 Nov 2020 18:34:49 +0000 Subject: [PATCH] fix(*): Clear pokemon name and captain name when using the clear queue command --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 2e2219a..8e83947 100644 --- a/index.js +++ b/index.js @@ -391,6 +391,9 @@ client.on('message', function (message) { playerVotes = []; message.channel.send(`The queue has been cleared!`); logger.log('info', `${message.author.username} cleared the queue and the votes.`); + pokemonName = ''; + captainInGameName = ''; + logger.log('info', 'Emptied pokemon name and captain name'); } }