mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Fix 20q
This commit is contained in:
@@ -104,14 +104,14 @@ module.exports = class TwentyQuestionsCommand extends Command {
|
|||||||
const { text } = await request
|
const { text } = await request
|
||||||
.post(`${this.makeBaseURI(game)}${startURL}`)
|
.post(`${this.makeBaseURI(game)}${startURL}`)
|
||||||
.set({
|
.set({
|
||||||
Origin: `${this.makeBaseURI(game)}/`,
|
Origin: this.makeBaseURI(game),
|
||||||
Referer: `${this.makeBaseURI(game)}/gs${game ? 'e' : 'q-en'}`,
|
Referer: `${this.makeBaseURI(game)}/gs${game ? 'e' : 'q-en'}`,
|
||||||
'User-Agent': agent
|
'User-Agent': agent
|
||||||
})
|
})
|
||||||
.attach({
|
.attach({
|
||||||
submit: ' Play ',
|
|
||||||
age: '',
|
age: '',
|
||||||
cctkr: 'US,AR,VI,GB,AF,PL'
|
cctkr: 'US,AR,VI,GB,AF,PL',
|
||||||
|
submit: '++Play++'
|
||||||
});
|
});
|
||||||
const $ = cheerio.load(text);
|
const $ = cheerio.load(text);
|
||||||
const i = game === 'starwars' || game === 'marvel' ? 5 : 2;
|
const i = game === 'starwars' || game === 'marvel' ? 5 : 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user