From 115c86c8307825d29588c770f76409e5f4848dbe Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Sun, 12 Oct 2025 18:49:32 -0400 Subject: [PATCH] IT WORKS --- commands/games-sp/akinator.js | 3 --- structures/Akinator.js | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index 527111f9..bfa50c8c 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -105,9 +105,6 @@ 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 797cabb7..4526391d 100644 --- a/structures/Akinator.js +++ b/structures/Akinator.js @@ -96,14 +96,13 @@ class Akinator { params.append('session', this.session); params.append('signature', this.signature); params.append('forward_answer', '1'); - const { body, text } = await request + const { body } = await request .post(`https://${this.region}.akinator.com/exclude`) .send(params.toString(), true) .set({ 'Content-Length': params.toString().length, 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', }); - this.test = Buffer.from(text); this.guessed = null; this.stepLastProposition = body.step; this.progress = body.progression;