Fix bug in battle when rejecting

This commit is contained in:
Daniel Odendahl Jr
2018-10-10 22:43:21 +00:00
parent 73b5aa7b9b
commit d085e16c3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class BattleCommand extends Command {
await msg.say(`${opponent}, do you accept this challenge?`); await msg.say(`${opponent}, do you accept this challenge?`);
const verification = await verify(msg.channel, opponent); const verification = await verify(msg.channel, opponent);
if (!verification) { if (!verification) {
this.fighting.delete(msg.channel.id); this.battles.delete(msg.channel.id);
return msg.say('Looks like they declined...'); return msg.say('Looks like they declined...');
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "94.0.2", "version": "94.0.3",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {