Skip to content

Commit

Permalink
feat: add guest signup notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Simpson committed Oct 12, 2016
1 parent eb5bbb0 commit 43aafe6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"general": "node dist/generalAnnouncement.js",
"signup": "node dist/postSignup.js",
"presignup": "babel src --out-dir dist",
"private": "node dist/privateReminder.js",
"preprivate": "babel src --out-dir dist",
"pregeneral": "babel src --out-dir dist",
Expand Down
19 changes: 19 additions & 0 deletions src/postSignup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { postToSlack } from './postToSlack';

const post = () => {
/* eslint max-len: "off" */
const msg = `
<!subteam^${process.env.groupID}|dayton> Friday lunch guest signup.
Bring yo wives…bring yo kids…
${process.env.guestSignup}
`;

postToSlack('#general', msg);
};

const date = new Date();
// wednesday
if (date.getDay() === 3) {
post();
}

0 comments on commit 43aafe6

Please sign in to comment.