diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-09 18:02:15 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-09 18:03:06 +0200 |
| commit | 0ee8e0e5239e3f76911834da54d2c72a4a149804 (patch) | |
| tree | fca810d542ffad451699379a8dc61067c7ea632b /views/matches.js | |
| parent | 94adb2f9f182e50f6d60aadc70bb8bf8f74f2371 (diff) | |
| download | discordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.tar.gz discordbot-0ee8e0e5239e3f76911834da54d2c72a4a149804.zip | |
error handling, migration to template
Diffstat (limited to 'views/matches.js')
| -rw-r--r-- | views/matches.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/views/matches.js b/views/matches.js index 279bf9c..a79654b 100644 --- a/views/matches.js +++ b/views/matches.js @@ -39,8 +39,8 @@ Score | ${emojiScore} \`${Math.floor(100 * participant.stats.impact_score)}%\` const matchesPart = matches.slice(0, MATCH_HISTORY_LEN); // build embed - let embed = util.vainsocialEmbed( - this.ign, "player/" + this.ign, "vainsocial-matches") + let embed = util.vainsocialEmbed(this.ign, + "player/" + this.ign, "vainsocial-matches") .setDescription(`Last ${matchesPart.length} casual and ranked matches.\n` + await this.help()) .setTimestamp(new Date(matchesPart[0].created_at)); @@ -60,9 +60,8 @@ Score | ${emojiScore} \`${Math.floor(100 * participant.stats.impact_score)}%\` let reactions = {}; matchesPart.forEach((m, idx) => reactions[strings.emojiCount[idx]] = async () => { - console.log("react"); util.trackAction(this.msg, "reaction-match", m.match_api_id); - await new MatchView(this.msg, m.match_api_id).respond(); + await new MatchView(this.msg).respond(m.match_api_id); }); return reactions; } |
