Documentation ¶
Index ¶
- Variables
- func Attendance() (*discordgo.ApplicationCommand, ...)
- func Attendanceof() (*discordgo.ApplicationCommand, ...)
- func Birthday() (*discordgo.ApplicationCommand, ...)
- func DQuery() (*discordgo.ApplicationCommand, ...)
- func Feedback() (*discordgo.ApplicationCommand, ...)
- func Init(...)
- func Kudos() (*discordgo.ApplicationCommand, ...)
- func Log() (*discordgo.ApplicationCommand, ...)
- func Member() (*discordgo.ApplicationCommand, ...)
- func Ping() (*discordgo.ApplicationCommand, ...)
- func Purge() (*discordgo.ApplicationCommand, ...)
- func Query() (*discordgo.ApplicationCommand, ...)
- func Reboot() (*discordgo.ApplicationCommand, ...)
- func Scoreboard() (*discordgo.ApplicationCommand, ...)
- func Signin() (*discordgo.ApplicationCommand, ...)
- func Update() (*discordgo.ApplicationCommand, ...)
- func Usage() (*discordgo.ApplicationCommand, ...)
- func Vote() (*discordgo.ApplicationCommand, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // KudosChannelID is the channel ID to send kudos to KudosChannelID string = config.GetString("commands.kudos.channel_id") // KudosApprovalChannelID is the channel ID to approve kudos in KudosApprovalChannelID string = config.GetString("commands.kudos.approval_channel_id") )
View Source
var ( // ComponentHandlers is a map of all component handlers ComponentHandlers *map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate) )
View Source
var ( // FeedbackChannelID is the ID of the channel to send feedback to FeedbackChannelID string = config.GetString("commands.feedback.channel_id") )
View Source
var ( // VoteURL is the URL for the vote page VoteURL = config.GetString("commands.vote.url") )
Functions ¶
func Attendance ¶
func Attendance() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Attendance slash command
func Attendanceof ¶
func Attendanceof() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Attendanceof slash command
func Birthday ¶
func Birthday() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
func DQuery ¶
func DQuery() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
func Feedback ¶
func Feedback() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Feedback is the feedback command
func Init ¶
func Init(componentHandlers *map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate), ctx ddtrace.SpanContext)
Init initializes all slash commands
func Kudos ¶
func Kudos() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Kudos is the kudos command
func Log ¶
func Log() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Log is a slash command that allows users to get or set the logging level
func Member ¶
func Member() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Member is the member command
func Ping ¶
func Ping() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Ping is a slash command that responds with "Pong!"
func Purge ¶
func Purge() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Purge is the purge command
func Query ¶
func Query() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Query users based on signins
func Reboot ¶
func Reboot() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Reboot is a slash command that reboots the bot
func Scoreboard ¶
func Scoreboard() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Reboot is a slash command that reboots the bot
func Signin ¶
func Signin() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Signin is a slash command that opens signins
func Update ¶
func Update() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
func Usage ¶
func Usage() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Usage is a slash command that returns system metrics
func Vote ¶
func Vote() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
Vote is a slash command that creates a vote
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.