Skip to content

Commit

Permalink
slack activities bot: fix spacing issue in reminder messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jul 16, 2024
1 parent 7540892 commit a090186
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions activities-bot/src/sendReminder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ const remind = async ({ slackId, updates }) => {
const formatUpdatesMessage = (updates) => {
if (updates?.length) {
return `
Here are your updates for today:
${updates.map((update, i) => `${i + 1}. ${update}`).join("\n")}
_If you wish to add more updates, *send each of the update as an individual message*._
_If you wish to clear or re-write your updates, message *\`clear updates\`*._
_These updates will be sent to the channel at the end of the working day along with your contribution data from GitHub._
Here are your updates for today:
${updates.map((update, i) => `${i + 1}. ${update}`).join("\n")}
_If you wish to add more updates, *send each of the update as an individual message*._
_If you wish to clear or re-write your updates, message *\`clear updates\`*._
_These updates will be sent to the channel at the end of the working day along with your contribution data from GitHub._
`;
}

return `
You have not specified any EOD updates for today.
If you wish to add updates, *send each of the update as an individual message*.`;
You have not specified any EOD updates for today.
If you wish to add updates, *send each of the update as an individual message*.`;
};

async function main() {
Expand Down

0 comments on commit a090186

Please sign in to comment.