Documentation
¶
Index ¶
- Variables
- func Birthday(s *discordgo.Session, quit chan interface{}) error
- func GoodFood(s *discordgo.Session, quit chan interface{}) error
- func Heartbeat(s *discordgo.Session, quit chan interface{}) error
- func Init(...)
- func Status(s *discordgo.Session, quit chan interface{}) error
- func Update(s *discordgo.Session, quit chan interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GoodFoodRoleID is the ID of the Good Food role GoodFoodRoleID string = config.GetString("commands.good_food.role_id") // GoodFoodChannelID is the ID of the Good Food channel GoodFoodChannelID string = config.GetString("commands.good_food.channel_id") )
View Source
var ( // ComponentHandlers is a map of component handlers ComponentHandlers *map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate) )
Functions ¶
func Birthday ¶
Birthday is a scheduled event that runs at midnight to remove existing birthday roles and add new ones
func Init ¶
func Init(componentHandlers *map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate), ctx ddtrace.SpanContext)
Init initializes the scheduled commands
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.