mirror of
https://github.com/jcreek/denBot.git
synced 2026-07-13 10:53:45 +00:00
fix(*): Clear pokemon name and captain ign when filling a queue
This commit is contained in:
@@ -141,6 +141,9 @@ function checkQueue(message) {
|
|||||||
logger.log('info', 'Emptied queue');
|
logger.log('info', 'Emptied queue');
|
||||||
playerVotes = [];
|
playerVotes = [];
|
||||||
logger.log('info', 'Emptied votes');
|
logger.log('info', 'Emptied votes');
|
||||||
|
pokemonName = '';
|
||||||
|
captainInGameName = '';
|
||||||
|
logger.log('info', 'Emptied pokemon name and captain name');
|
||||||
}
|
}
|
||||||
else if (playerQueue.length === 0) {
|
else if (playerQueue.length === 0) {
|
||||||
message.channel.send('The queue is empty :(');
|
message.channel.send('The queue is empty :(');
|
||||||
|
|||||||
Reference in New Issue
Block a user