mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
One last ditch effort
This commit is contained in:
@@ -74,7 +74,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async createSession(channel) {
|
async createSession(channel) {
|
||||||
const time = Date.now();
|
let time;
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.get('https://srv13.akinator.com:9196/ws/new_session')
|
.get('https://srv13.akinator.com:9196/ws/new_session')
|
||||||
.query({
|
.query({
|
||||||
@@ -85,7 +85,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
constraint: 'ETAT<>\'AV\'',
|
constraint: 'ETAT<>\'AV\'',
|
||||||
soft_constraint: channel.nsfw ? '' : 'ETAT=\'EN\'',
|
soft_constraint: channel.nsfw ? '' : 'ETAT=\'EN\'',
|
||||||
question_filter: channel.nsfw ? '' : 'cat=1',
|
question_filter: channel.nsfw ? '' : 'cat=1',
|
||||||
_: time
|
_: time = Date.now()
|
||||||
});
|
});
|
||||||
if (body.completion !== 'OK') return { data: null, raw: body };
|
if (body.completion !== 'OK') return { data: null, raw: body };
|
||||||
const data = body.parameters;
|
const data = body.parameters;
|
||||||
|
|||||||
Reference in New Issue
Block a user