From 073fe8cc1c6d3a49d11049716d06bde80dec0edb Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 19 Apr 2019 17:14:42 +0000 Subject: [PATCH] One last ditch effort --- commands/games/akinator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games/akinator.js b/commands/games/akinator.js index a0fe930c..f4845715 100644 --- a/commands/games/akinator.js +++ b/commands/games/akinator.js @@ -74,7 +74,7 @@ module.exports = class AkinatorCommand extends Command { } async createSession(channel) { - const time = Date.now(); + let time; const { body } = await request .get('https://srv13.akinator.com:9196/ws/new_session') .query({ @@ -85,7 +85,7 @@ module.exports = class AkinatorCommand extends Command { constraint: 'ETAT<>\'AV\'', soft_constraint: channel.nsfw ? '' : 'ETAT=\'EN\'', question_filter: channel.nsfw ? '' : 'cat=1', - _: time + _: time = Date.now() }); if (body.completion !== 'OK') return { data: null, raw: body }; const data = body.parameters;