From 6e1e198ef05aebae725b71d1b8591538a3512598 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Sun, 12 Oct 2025 18:15:34 -0400 Subject: [PATCH] Aha! --- structures/Akinator.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/structures/Akinator.js b/structures/Akinator.js index e29080a9..221fc04f 100644 --- a/structures/Akinator.js +++ b/structures/Akinator.js @@ -88,17 +88,18 @@ class Akinator { return this; } if (!correct && keepGoing) { + const params = new URLSearchParams(); + params.append('step', this.currentStep.toString()); + params.append('sid', '1'); + params.append('cm', this.childMode); + params.append('progression', this.progress); + params.append('session', this.session); + params.append('signature', this.signature); + params.append('forward_answer', '1'); const { body } = await request .post(`https://${this.region}.akinator.com/exclude`) - .attach({ - step: this.currentStep.toString(), - sid: '1', - cm: this.childMode, - progression: this.progress, - session: this.session, - signature: this.signature, - forward_answer: '1' - }); + .send(params, true) + .set({ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' }); this.guessed = null; this.stepLastProposition = body.step; this.progress = body.progression;