A simple service for reminding people when it's their turn to take out the garbage cans. Mashup of Google Spreadsheet and 46Elks and some additional cron magic.
- Clone this repo
- Rename the
.envand add your 46 Elks credentials.
- Configure the message and name of bot in the
- Copy this spreadsheet and add the info
- Publish each sheet (there are two; Contact info and Schema) as csvs and add the url in the .env file; SPREADSHEET_CONTACTS and SPREADSHEET_SCHEDULE
There are 3 ways to call SopBot and are done by setting an action query param
/?action=update_contactswill update contacts and should perhaps be update daily
/?action=update_schedulewill update the schedule and should also be update daily in case any one changes stuff
/?action=send_reminderWill send a reminder to the household that is responsible for the current week. Only run the day the sms should go off.
Set a cronjob for each. (Most of the time, webhosts got a guide for this. Otherwise you can enjoy some of this reading.)