mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Fix lint
This commit is contained in:
@@ -64,15 +64,14 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async createSession(channel) {
|
async createSession(channel) {
|
||||||
const nsfw = Boolean(channel.nsfw);
|
|
||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.get('http://192.99.38.142:8126/ws/new_session')
|
.get('http://192.99.38.142:8126/ws/new_session')
|
||||||
.query({
|
.query({
|
||||||
partner: 1,
|
partner: 1,
|
||||||
player: 'website-desktop',
|
player: 'website-desktop',
|
||||||
constraint: 'ETAT<>\'AV\'',
|
constraint: 'ETAT<>\'AV\'',
|
||||||
soft_constraint: nsfw ? '' : 'ETAT=\'EN\'',
|
soft_constraint: channel.nsfw ? '' : 'ETAT=\'EN\'',
|
||||||
question_filter: nsfw ? '' : 'cat=1',
|
question_filter: channel.nsfw ? '' : 'cat=1',
|
||||||
_: Date.now()
|
_: Date.now()
|
||||||
});
|
});
|
||||||
const data = body.parameters;
|
const data = body.parameters;
|
||||||
@@ -95,7 +94,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
signature: session.signature,
|
signature: session.signature,
|
||||||
step: session.step,
|
step: session.step,
|
||||||
answer,
|
answer,
|
||||||
question_filter: Boolean(channel.nsfw) ? '' : 'cat=1',
|
question_filter: channel.nsfw ? '' : 'cat=1',
|
||||||
_: Date.now()
|
_: Date.now()
|
||||||
});
|
});
|
||||||
const data = body.parameters;
|
const data = body.parameters;
|
||||||
|
|||||||
Reference in New Issue
Block a user