This commit is contained in:
Dragon Fire
2024-03-21 17:16:50 -04:00
parent 0a99c865ef
commit acf02ec40d
+3 -3
View File
@@ -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;