events

package
v0.0.0-...-37b14fa Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GuildIds = &GuildIdsStruct{
	Ids: make(map[string]bool),
}

Functions

func CommonEvents

func CommonEvents(_ *discordgo.Session, _ *discordgo.Ready)

func GuildCreate

func GuildCreate(s *discordgo.Session, g *discordgo.GuildCreate)

GuildCreate Handles BOT joining a server

func GuildDelete

func GuildDelete(_ *discordgo.Session, g *discordgo.GuildDelete)

GuildDelete logs BOT leaving a server

func OnBotPing

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

OnBotPing Prints fluff message on bot ping

func StatusReady

func StatusReady(s *discordgo.Session, _ *discordgo.Ready)

func UpdateDailyScheduleWebhooks

func UpdateDailyScheduleWebhooks()

func VoiceRoleHandler

func VoiceRoleHandler(s *discordgo.Session, v *discordgo.VoiceStateUpdate)

VoiceRoleHandler toggles a role whenever a user join/leave the specified voice channel

func WriteEvents

func WriteEvents(s *discordgo.Session, _ *discordgo.Ready)

Types

type Block

type Block struct {
	deadlock.RWMutex
	Block bool
}
var (
	DailyScheduleWebhooksMap = &safeWebhooksMap{WebhooksMap: make(map[string]*discordgo.Webhook)}

	DailyScheduleWebhooksMapBlock Block
)

type GuildIdsStruct

type GuildIdsStruct struct {
	deadlock.RWMutex
	Ids map[string]bool
}

Jump to

Keyboard shortcuts

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