diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-30 14:36:27 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-30 14:36:27 +0200 |
| commit | 6b991150f4d8439f58da6eae32458c529a682029 (patch) | |
| tree | ef15b4ab8e95dd86ca32edd652d2f333d4f36ebd | |
| parent | 03b175e8972d7de1a3a05232d6eee6bc3f53c23c (diff) | |
| download | discordbot-6b991150f4d8439f58da6eae32458c529a682029.tar.gz discordbot-6b991150f4d8439f58da6eae32458c529a682029.zip | |
fuck bot is down fuck
| -rw-r--r-- | responses.js | 5 |
1 files 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, |
