mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
I hate my life
This commit is contained in:
@@ -69,6 +69,7 @@ module.exports = class BattleCommand extends Command {
|
|||||||
if (!turn.size) {
|
if (!turn.size) {
|
||||||
await msg.say('Time!');
|
await msg.say('Time!');
|
||||||
forfeit();
|
forfeit();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
const choice = turn.first().content.toLowerCase();
|
const choice = turn.first().content.toLowerCase();
|
||||||
if (choice === 'fight') {
|
if (choice === 'fight') {
|
||||||
@@ -94,6 +95,7 @@ module.exports = class BattleCommand extends Command {
|
|||||||
} else if (choice === 'run') {
|
} else if (choice === 'run') {
|
||||||
await msg.say(`**${username}** flees!`);
|
await msg.say(`**${username}** flees!`);
|
||||||
forfeit();
|
forfeit();
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
await msg.say('I do not understand what you want to do.');
|
await msg.say('I do not understand what you want to do.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user