Documentation
¶
Index ¶
- func NotCommand(b *bot.Bot) func(*gumi.Ctx) error
- func OnError(b *bot.Bot) func(*gumi.Ctx, error)
- func OnExecute(b *bot.Bot) func(ctx *gumi.Ctx) error
- func OnGuildBanAdd(b *bot.Bot) func(*discordgo.Session, *discordgo.GuildBanAdd)
- func OnGuildCreate(b *bot.Bot) func(*discordgo.Session, *discordgo.GuildCreate)
- func OnGuildDelete(b *bot.Bot) func(*discordgo.Session, *discordgo.GuildDelete)
- func OnMessageRemove(b *bot.Bot) func(*discordgo.Session, *discordgo.MessageDelete)
- func OnNSFW(b *bot.Bot) func(ctx *gumi.Ctx) error
- func OnNoPerms(b *bot.Bot) func(ctx *gumi.Ctx) error
- func OnPanic(b *bot.Bot) func(*gumi.Ctx, interface{})
- func OnRateLimit(b *bot.Bot) func(*gumi.Ctx) error
- func OnReactionAdd(b *bot.Bot) func(*discordgo.Session, *discordgo.MessageReactionAdd)
- func OnReactionRemove(b *bot.Bot) func(*discordgo.Session, *discordgo.MessageReactionRemove)
- func OnReady(b *bot.Bot) func(*discordgo.Session, *discordgo.Ready)
- func PrefixResolver(b *bot.Bot) func(s *discordgo.Session, m *discordgo.MessageCreate) []string
- func RegisterHandlers(b *bot.Bot)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotCommand ¶
NotCommand is executed on every message that isn't a command.
func OnGuildBanAdd ¶
OnGuildBanAdd adds a banned server member to temporary banned users cache to prevent them from losing all their bookmarks on that server due to Discord removing all reactions of banned users.
func OnGuildCreate ¶
OnGuildCreate loads server configuration on launch and creates new database entries when joining a new server.
func OnGuildDelete ¶
OnGuildDelete logs guild outages and guilds that kicked the bot out.
func OnMessageRemove ¶
func OnNoPerms ¶
OnNoPerms creates a response for users who used a command without required permissions.
func OnRateLimit ¶
OnRateLimit creates a response for users who use bot's command too frequently
func OnReactionAdd ¶
func OnReactionRemove ¶
func PrefixResolver ¶
PrefixResolver returns an array of guild's prefixes and bot mentions.
func RegisterHandlers ¶
Types ¶
This section is empty.