mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Aha!
This commit is contained in:
+10
-9
@@ -88,17 +88,18 @@ class Akinator {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
if (!correct && keepGoing) {
|
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
|
const { body } = await request
|
||||||
.post(`https://${this.region}.akinator.com/exclude`)
|
.post(`https://${this.region}.akinator.com/exclude`)
|
||||||
.attach({
|
.send(params, true)
|
||||||
step: this.currentStep.toString(),
|
.set({ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' });
|
||||||
sid: '1',
|
|
||||||
cm: this.childMode,
|
|
||||||
progression: this.progress,
|
|
||||||
session: this.session,
|
|
||||||
signature: this.signature,
|
|
||||||
forward_answer: '1'
|
|
||||||
});
|
|
||||||
this.guessed = null;
|
this.guessed = null;
|
||||||
this.stepLastProposition = body.step;
|
this.stepLastProposition = body.step;
|
||||||
this.progress = body.progression;
|
this.progress = body.progression;
|
||||||
|
|||||||
Reference in New Issue
Block a user