Skip to content

Commit

Permalink
Only show number of darts thrown by winning player
Browse files Browse the repository at this point in the history
  • Loading branch information
thordy committed Oct 30, 2019
1 parent aa16f69 commit 79abdf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slack-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ exports.legFinished = (thread, players, match, leg, finalThrow) => {
checkoutDarts = "`" + formatThrow(first) + "` `" + formatThrow(second) + "`";
}
return {
"text": `${winner} wins the <${this.url}/legs/${leg.id}/result|${legNum} leg> with a ${checkout} (${checkoutDarts}) checkout after ${leg.darts_thrown} darts!`,
"text": `${winner} wins the <${this.url}/legs/${leg.id}/result|${legNum} leg> with a ${checkout} (${checkoutDarts}) checkout after ${leg.visits[leg.visits.length - 1].darts_thrown} darts!`,
"thread_ts": `"${thread}"`,
"channel": this.channel
};
Expand Down

0 comments on commit 79abdf1

Please sign in to comment.