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 Openstack() (*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 Verify() (*discordgo.ApplicationCommand, ...)
- func Vote() (*discordgo.ApplicationCommand, ...)
Constants ¶
This section is empty.
Variables ¶
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") )
var ( // ComponentHandlers is a map of all component handlers ComponentHandlers *map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate) )
var ( // FeedbackChannelID is the ID of the channel to send feedback to FeedbackChannelID string = config.GetString("commands.feedback.channel_id") )
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 Openstack ¶
func Openstack() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
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 Verify ¶
func Verify() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))
The purpose of this command is for users who were manually verified through the /member command. The issue is that they then would have no email in the database but they still need to set their email if they want to use the openstack command to create their accounts.
This is done by checking if their verification attempts is above 1, arbitrary locking out this command until they did /member command first.
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.