mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix bug in battle when rejecting
This commit is contained in:
@@ -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
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user