From 79abdf1e9852dbb21cd77dc0e435aa254d18bdaf Mon Sep 17 00:00:00 2001 From: Thord Setsaas Date: Wed, 30 Oct 2019 13:34:34 +0100 Subject: [PATCH] Only show number of darts thrown by winning player --- slack-message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slack-message.js b/slack-message.js index 66edf71..07983b3 100644 --- a/slack-message.js +++ b/slack-message.js @@ -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 };