mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Let's get this
This commit is contained in:
@@ -105,6 +105,9 @@ module.exports = class AkinatorCommand extends Command {
|
||||
break;
|
||||
} else if (buttonPress.customId === 'false') {
|
||||
await aki.guess(false, true);
|
||||
if (aki.test) {
|
||||
await msg.channel.send({ files: [{ attachment: aki.test, name: 'test.txt' }] });
|
||||
}
|
||||
guessedLastTurn = true;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -100,7 +100,7 @@ class Akinator {
|
||||
.post(`https://${this.region}.akinator.com/exclude`)
|
||||
.send(params.toString(), true)
|
||||
.set({ 'Content-Type': 'application/x-www-form-urlencoded' });
|
||||
console.log(text);
|
||||
this.test = Buffer.from(text);
|
||||
this.guessed = null;
|
||||
this.stepLastProposition = body.step;
|
||||
this.progress = body.progression;
|
||||
|
||||
Reference in New Issue
Block a user