Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.17 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.17 KB

rosterbot

"I have to ban you from writing slack bots" - @rokane

  • A slack app for rostering

Use

  • Roster a message every day at 23:00 UTC
/roster add "0 23 * * *" "message" @user1, @user2, @user3 
// 23:00 UTC: message @user1
// 23:00 Tomorrow: message @user2
// 23:00 The day after tomorrow: message @user2
  • Remove rosters for current channel
/roster remove

Caveats

  • Doesn't support full cron syntax:
* * * * * is supported
0 /10 * * is not supported
  • All time must be specified in UTC time, not local time

About

  • Hosted on google cloud functions
  • Firestore to store data (webhooks and subscriptions)
  • Uses google cloud scheduling to execute every minute (* * * * *) in order to filter out firestore subscriptions for that time