diff --git a/src/untappd-friends.js b/src/untappd-friends.js index a17e69d..3c06b29 100755 --- a/src/untappd-friends.js +++ b/src/untappd-friends.js @@ -306,10 +306,12 @@ module.exports = (robot) => { }); if (uniqueLocations.length === 1 && uniqueLocations[0]) { contents.push({ + text: `🏆 Congratulations to ${uniqueUsers.join(' + ')} for running the board at ${uniqueLocations[0]}! 🍻`, fallback: `🏆 Congratulations to ${uniqueUsers.join(' + ')} for running the board at ${uniqueLocations[0]}! 🍻`, }); } else if (uniqueUsers.length === 1) { contents.push({ + text: `🏆 Congratulations to ${uniqueUsers[0]} for running the board! 🍻`, fallback: `🏆 Congratulations to ${uniqueUsers[0]} for running the board! 🍻`, }); } diff --git a/test/untappd-friends-slack_test.js b/test/untappd-friends-slack_test.js index 763ced7..bc21f5d 100644 --- a/test/untappd-friends-slack_test.js +++ b/test/untappd-friends-slack_test.js @@ -88,6 +88,7 @@ describe('hubot-untappd-friends for slack', () => { ts: 1522406504, }, { + text: '🏆 Congratulations to heath (heathseals) for running the board! 🍻', fallback: '🏆 Congratulations to heath (heathseals) for running the board! 🍻', }, ],