mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 08:08:34 +02:00
Fix
This commit is contained in:
@@ -56,7 +56,7 @@ module.exports = class AkinatorCommand extends Command {
|
||||
return gameMsg.edit('Guess you didn\'t want to play after all...', { components: [] });
|
||||
}
|
||||
let buttonPress = initialVerify.first();
|
||||
if (buttonPress.customID === 'false') return buttonPress.update('Too bad...', { components: [] });
|
||||
if (buttonPress.customId === 'false') return buttonPress.update('Too bad...', { components: [] });
|
||||
await this.sendLoadingMessage(buttonPress, [initialRow]);
|
||||
const guessBlacklist = [];
|
||||
while (timesGuessed < 3) {
|
||||
@@ -96,7 +96,7 @@ module.exports = class AkinatorCommand extends Command {
|
||||
}
|
||||
buttonPress = interactions.first();
|
||||
await this.sendLoadingMessage(buttonPress, [row, sRow]);
|
||||
const choice = interactions.first().customID;
|
||||
const choice = interactions.first().customId;
|
||||
if (choice === 'end') {
|
||||
forceGuess = true;
|
||||
} else if (choice === 'back') {
|
||||
@@ -138,7 +138,7 @@ module.exports = class AkinatorCommand extends Command {
|
||||
}
|
||||
buttonPress = verification.first();
|
||||
await this.sendLoadingMessage(buttonPress, [guessRow]);
|
||||
if (buttonPress.customID === 'true') {
|
||||
if (buttonPress.customId === 'true') {
|
||||
win = false;
|
||||
break;
|
||||
} else if (timesGuessed >= 3 || forceGuess) {
|
||||
|
||||
@@ -62,7 +62,7 @@ module.exports = class TrueOrFalseCommand extends Command {
|
||||
});
|
||||
if (!interactions.size) return questionMsg.edit(`Sorry, time is up! It was ${correctBool}.`, { components: [] });
|
||||
const ans = interactions.first();
|
||||
const ansBool = ans.customID === 'true';
|
||||
const ansBool = ans.customId === 'true';
|
||||
if (correctBool !== ansBool) return ans.update(`Nope, sorry, it's ${correctBool}.`, { components: [] });
|
||||
return ans.update('Nice job! 10/10! You deserve some cake!', { components: [] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user