rosterbot

package module
v0.0.0-...-72ae066 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enroll

func Enroll(w http.ResponseWriter, r *http.Request)

func RespondHandler

func RespondHandler(w http.ResponseWriter, r *http.Request)

func SubscribeHandler

func SubscribeHandler(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL