diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index bfa50c8c..527111f9 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -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 { diff --git a/structures/Akinator.js b/structures/Akinator.js index 0a93d735..9ff8293e 100644 --- a/structures/Akinator.js +++ b/structures/Akinator.js @@ -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;