slash

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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

Attendance slash command

func Attendanceof

Attendanceof slash command

func Feedback

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

Kudos is the kudos command

func Log

Log is a slash command that allows users to get or set the logging level

func Member

Member is the member command

func Ping

Ping is a slash command that responds with "Pong!"

func Purge

Purge is the purge command

func Query

Query users based on signins

func Reboot

Reboot is a slash command that reboots the bot

func Scoreboard

Reboot is a slash command that reboots the bot

func Signin

Signin is a slash command that opens signins

func Usage

Usage is a slash command that returns system metrics

func Verify

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

Vote is a slash command that creates a vote

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