From 6b991150f4d8439f58da6eae32458c529a682029 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 30 Apr 2017 14:36:27 +0200 Subject: fuck bot is down fuck --- responses.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/responses.js b/responses.js index 55baabb..52cf633 100644 --- a/responses.js +++ b/responses.js @@ -260,7 +260,7 @@ module.exports.showUser = async (msg, args) => { const waiter = api.subscribeUpdates(ign); while (await waiter.next() != undefined) { - const [player, matches] = await Promise.all([ + const [player, stormcallerpleasefix] = await Promise.all([ api.getPlayer(ign), api.getMatches(ign) ]); @@ -269,11 +269,12 @@ module.exports.showUser = async (msg, args) => { "Loading your data…", response); continue; } - if (matches == undefined || matches.data.length == 0) { + if (stormcallerpleasefix == undefined || stormcallerpleasefix[0].data.length == 0) { response = await respond(msg, "No match history for you yet", response); continue; } + const matches = stormcallerpleasefix[0]; const moreHelp = oneLine` *${emoji.symbols.information_source} or ${usg(msg, "vm " + ign)} for detail, -- cgit v1.3.1