From 726aea1da7abca72d87ec3b9c611db66d1e938d7 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 17 Apr 2021 13:44:01 -0400 Subject: [PATCH] Fix --- commands/games-sp/20-questions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-sp/20-questions.js b/commands/games-sp/20-questions.js index 91b4e036..cafe4459 100644 --- a/commands/games-sp/20-questions.js +++ b/commands/games-sp/20-questions.js @@ -88,7 +88,7 @@ module.exports = class TwentyQuestionsCommand extends Command { async initialize(game) { const { text } = await request - .get(`${this.makeBaseURI(game)}/gsq${game ? '' : '-en'}`) + .get(`${this.makeBaseURI(game)}/gs${game ? 'e' : 'q-en'}`) .set({ Referer: 'http://www.20q.net/' }); const $ = cheerio.load(text); return $('form').first().attr('action'); @@ -99,7 +99,7 @@ module.exports = class TwentyQuestionsCommand extends Command { .post(`${this.makeBaseURI(game)}${startURL}`) .set({ Origin: `${this.makeBaseURI(game)}/`, - Referer: `${this.makeBaseURI(game)}/gsq${game ? '' : '-en'}` + Referer: `${this.makeBaseURI(game)}/gs${game ? 'e' : 'q-en'}` }) .attach({ submit: ' Play ',