mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Fix anagramica not clearing playing status
This commit is contained in:
@@ -65,6 +65,7 @@ module.exports = class AnagramicaCommand extends Command {
|
|||||||
const msgs = await msg.channel.awaitMessages(filter, {
|
const msgs = await msg.channel.awaitMessages(filter, {
|
||||||
time: time * 1000
|
time: time * 1000
|
||||||
});
|
});
|
||||||
|
this.client.games.delete(msg.channel.id);
|
||||||
if (!msgs.size) return msg.reply('Couldn\'t even think of one? Ouch.');
|
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!`);
|
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}**!`);
|
return msg.reply(`Nice job! Your final score was **${points}**!`);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "114.31.1",
|
"version": "114.31.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user