Fix anagramica not clearing playing status

This commit is contained in:
Dragon Fire
2020-05-30 00:25:09 -04:00
parent 82f3a48501
commit d6bd1e9490
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -65,6 +65,7 @@ module.exports = class AnagramicaCommand extends Command {
const msgs = await msg.channel.awaitMessages(filter, {
time: time * 1000
});
this.client.games.delete(msg.channel.id);
if (!msgs.size) return msg.reply('Couldn\'t even think of one? Ouch.');
if (points < 1) return msg.reply(`Ouch, your final score was **${points}**. Try harder next time!`);
return msg.reply(`Nice job! Your final score was **${points}**!`);