A Slack Bot for wake up mission
-
python2.7
-
python packages
- APScheduler
- Flask
- slackclient
- holidays
-
ngrok (with account)
-
Your own Slack app & SLACK_BOT_TOKEN
- Prepare your own Slack App (https://slack.com/intl/en-kr/help/articles/115005265703-Create-a-bot-for-your-workspace)
- Run
python good-morning.py
with your SLACK_BOT_TOKEN. This will run a flask server. - Get public URL of your server (I used
ngrok
) - Go to Slack app settings. Set Interactivity, Slash Commands, OAuth&Permissions, and Event Subscribtions with your server URL.
Default set to post main menu message on every weekday 8 AM .
You can set your wake up time **once in a week**. To success at the wake up mission, just send a photo on the slack channel before your wake up time. It's Super EASY! :) Weekly report shows the weekly score of the participants and their penalty/reward. Default set to post weekly report on **every Friday 12 PM**. Users can request to skip the mission on the following day. By default, skip is accpeted only **before 10PM** and **once in a week**.
By default, good-morning calculates the weekly rewards and penalties on Friday 12:05PM.
For those with negative deposits, the bank posts an alert message.