handlers

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AngryReactID is the ID of the angry react emoji
	AngryReactEmojiID = strings.Split(config.GetString("commands.angry_react.emoji_id"), ":")[1]
)
View Source
var (
	// AngryReactID is the ID of the angry react emoji
	AngryReactID = config.GetString("commands.angry_react.emoji_id")
)
View Source
var (
	// ComponentHandlers is a map of component handlers
	ComponentHandlers *map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate)
)

Functions

func AngryReact

func AngryReact(s *discordgo.Session, m *discordgo.MessageCreate)

Angry Reacts to messages in #*shitpost*

func Flag

Flag is a handler that deletes messages that start with /flag

func Init

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

Init initializes the handlers

func IsTheStackRunning

func IsTheStackRunning(s *discordgo.Session, m *discordgo.MessageCreate)

IsTheStackRunning is a handler that replies to messages that contain "is the stack running?"

func MemberJoin

func MemberJoin(s *discordgo.Session, m *discordgo.GuildMemberAdd)

MemberJoin is a handler for when a member joins the server

func MemberLeave

func MemberLeave(s *discordgo.Session, m *discordgo.GuildMemberRemove)

MemberJoin is a handler for when a member joins the server

func MessageDelete

func MessageDelete(s *discordgo.Session, m *discordgo.MessageDelete)

MessageDelete is a handler that sends a message to the messageModificationChannelID channel when a message is deleted

func MessageEdit

func MessageEdit(s *discordgo.Session, m *discordgo.MessageUpdate)

MessageEdit is a handler that sends a message to the messageModificationChannelID channel when a message is editted

func Scoreboard

func Scoreboard(s *discordgo.Session, r *discordgo.MessageReactionAdd)

Scoreboard tracks all shitpost reactions and add them for scoreboard use

func Uwu

Uwu is a handler that sends a message when a message contains uwu

Types

This section is empty.

Jump to

Keyboard shortcuts

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