This commit is contained in:
Dragon Fire
2021-01-23 15:23:25 -05:00
parent ed7d547408
commit e6ea2e110a
+1 -1
View File
@@ -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?`);