From e6ea2e110a188e27111d9923ea871740c1e6e7d9 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 15:23:25 -0500 Subject: [PATCH] Fix --- commands/games-mp/chess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index b8bc1383..470a19b4 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -47,7 +47,7 @@ module.exports = class ChessCommand extends Command { const current = this.client.games.get(msg.channel.id); if (current) return msg.reply(`Please wait until the current game of \`${current.name}\` is finished.`); this.client.games.set(msg.channel.id, { name: this.name }); - if (!images) await this.loadImages(); + if (!this.images) await this.loadImages(); try { if (!opponent.bot) { await msg.say(`${opponent}, do you accept this challenge?`);