Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
Minor tweak to leaderboard message
Browse files Browse the repository at this point in the history
  • Loading branch information
tdmalone committed Aug 19, 2018
1 parent b099017 commit 36da8a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ const getForSlack = async( event, request ) => {
);

const message = {
text: messageText,
attachments: [
{
text: messageText,
color: 'good', // Slack's 'green' colour.
fields: [
{
Expand All @@ -158,8 +158,8 @@ const getForSlack = async( event, request ) => {
}
]
}
]
};
] // Attachments.
}; // Message.

console.log( 'Sending the leaderboard.' );
return slack.sendMessage( message, event.channel );
Expand Down

0 comments on commit 36da8a2

Please sign in to comment.