This commit is contained in:
Daniel Odendahl Jr
2017-10-08 19:03:42 +00:00
parent 6a9d24cf87
commit c7ad9579b3
4 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ module.exports = class AkinatorCommand extends Command {
return msg.say(response === 'yes' ? 'Another win for me!' : 'Bravo, you have defeated me.');
} catch (err) {
this.sessions.delete(msg.channel.id);
throw err;
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}
+1
View File
@@ -70,6 +70,7 @@ module.exports = class BattleCommand extends Command {
});
if (!turn.size) {
await msg.say('Time!');
reset();
continue;
}
choice = turn.first().content.toLowerCase();
+1
View File
@@ -56,6 +56,7 @@ module.exports = class TicTacToeCommand extends Command {
});
if (!turn.size) {
await msg.say('Time!');
userTurn = !userTurn;
continue;
}
const choice = turn.first().content.toLowerCase();
+2 -1
View File
@@ -10,7 +10,8 @@ module.exports = class WhosThatPokemonCommand extends Command {
aliases: ['who-pokemon', 'whos-that-pokémon', 'who-pokémon'],
group: 'games',
memberName: 'whos-that-pokemon',
description: 'Guess who that Pokémon is.'
description: 'Guess who that Pokémon is.',
clientPermissions: ['EMBED_LINKS']
});
}