Categorygithub.com/joshcarp/rosterbot
repositorypackage
0.0.0-20210812000414-72ae0662410b
Repository: https://github.com/joshcarp/rosterbot.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

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