scheduled

package
v0.0.0-...-cdb1537 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func Birthday(s *discordgo.Session, quit chan interface{}) error

Birthday is a scheduled event that runs at midnight to remove existing birthday roles and add new ones

func GoodFood

func GoodFood(s *discordgo.Session, quit chan interface{}) error

GoodFood is the Good Food scheduled event

func Heartbeat

func Heartbeat(s *discordgo.Session, quit chan interface{}) error

Heartbeat is a scheduled task that sends a heartbeat to the push-based life check

func Init

func Init(componentHandlers *map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate), ctx ddtrace.SpanContext)

Init initializes the scheduled commands

func Status

func Status(s *discordgo.Session, quit chan interface{}) error

Status is a scheduled task that updates the bot's status

func Update

func Update(s *discordgo.Session, quit chan interface{}) error

checks for update every day at 2am and runs if available

Types

This section is empty.

Jump to

Keyboard shortcuts

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