mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Fix
This commit is contained in:
@@ -57,7 +57,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
}
|
}
|
||||||
if (msgs.first().content.toLowerCase() === 'end') forceGuess = true;
|
if (msgs.first().content.toLowerCase() === 'end') forceGuess = true;
|
||||||
else ans = answers.indexOf(msgs.first().content.toLowerCase());
|
else ans = answers.indexOf(msgs.first().content.toLowerCase());
|
||||||
if (aki.progress >= 70 || forceGuess) {
|
if (aki.progress >= 90 || forceGuess) {
|
||||||
await aki.win();
|
await aki.win();
|
||||||
const guess = aki.answers[0];
|
const guess = aki.answers[0];
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
@@ -74,9 +74,9 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
win = false;
|
win = false;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
const exMsg = aki.guessCount <= 3 || forceGuess ? 'I give up.' : 'I can keep going!';
|
const exMsg = aki.guessCount >= 3 || forceGuess ? 'I give up.' : 'I can keep going!';
|
||||||
await msg.say(`Hmm... Is that so? ${exMsg}`);
|
await msg.say(`Hmm... Is that so? ${exMsg}`);
|
||||||
if (aki.guessCount <= 3 || forceGuess) {
|
if (aki.guessCount >= 3 || forceGuess) {
|
||||||
win = true;
|
win = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user