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

Commit

Permalink
add explainer
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrown201 committed Apr 1, 2020
1 parent 18233ff commit 82d464d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
emoji: [":birthday:", ":cake:", ":cupcake:"],
defaultEmoji: "birthday",
type: "cake",
message: "`:cake: *Would like some cake:* \n"
message: "`:cake: *Birthday:* \n"
},
{
keywords: ["mat", "maternity", "pat", "paternity", "parental"],
Expand Down
9 changes: 3 additions & 6 deletions post.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,13 @@ function prepMessage(statuses) {
});
});

message +=
"\n _You can change your status throughout the day by adding and removing the relevent emoji as a reaction to this message._";

return message;
}

function addStatus({ statuses, statusType }) {
console.log(
"AWAY_TYPES.find(typeObj => typeObj.type === statusType).message;",
AWAY_TYPES.find(typeObj => typeObj.type === statusType).message
);
console.log("statuses", statuses);
console.log("statusType", statusType);
message = "";
message += AWAY_TYPES.find(typeObj => typeObj.type === statusType).message;
if (statuses.length > 0) {
Expand Down

0 comments on commit 82d464d

Please sign in to comment.