Skip to content

Commit

Permalink
Fix Slack formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed May 7, 2024
1 parent 558d26d commit 5ba3a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/untappd-friends.js
Original file line number Diff line number Diff line change
Expand Up @@ -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! 🍻`,
});
}
Expand Down
1 change: 1 addition & 0 deletions test/untappd-friends-slack_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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! 🍻',
},
],
Expand Down

0 comments on commit 5ba3a61

Please sign in to comment.