From 6cb87c02bfd950d70af2397d1492404f5aac369c Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Sun, 12 Oct 2025 18:36:46 -0400 Subject: [PATCH] Let's get this --- commands/games-sp/akinator.js | 3 +++ structures/Akinator.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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;