Skip to content

Commit

Permalink
Merge pull request #2 from rpiambulance/dev
Browse files Browse the repository at this point in the history
Merge dev to master
  • Loading branch information
ddbruce authored Oct 5, 2019
2 parents 1e45177 + 7ad245d commit 8297cdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ NODE_PORT=3000
SLACK_BOT_TOKEN=xoxb-YOURBOTTOKENHERE
SLACK_SIGNING_SECRET=YOURSECRETHERE
CHORES_CHANNEL=channel-here
CRON_SCHEDULE=* * * * *
TZ="America/New_York"
1 change: 1 addition & 0 deletions utilities/markChoreDone.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const TOKEN = process.env.SLACK_BOT_TOKEN;
const crossOffAndTag = (user, index, blocks) => {
const choreText = blocks[index + 2].text.text.replace(">", "");
blocks[index + 2].text.text = `>~${choreText}~ Completed by <@${user}>`;
delete blocks[index + 2].accessory;
return blocks;
};

Expand Down

0 comments on commit 8297cdd

Please sign in to comment.