filtermodule

package
v0.0.0-...-025a0c4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterModule

type FilterModule struct {
	// contains filtered or unexported fields
}

FilterModule implements word filters that allow you to look for spoilers or profanity uses regex matching.

func New

New instance of FilterModule

func (*FilterModule) Commands

func (w *FilterModule) Commands() []bot.Command

Commands in the module

func (*FilterModule) Description

func (w *FilterModule) Description(info *bot.GuildInfo) string

Description of the module

func (*FilterModule) Name

func (w *FilterModule) Name() string

Name of the module

func (*FilterModule) OnCommand

func (w *FilterModule) OnCommand(info *bot.GuildInfo, m *discordgo.Message) bool

OnCommand discord hook

func (*FilterModule) OnMessageCreate

func (w *FilterModule) OnMessageCreate(info *bot.GuildInfo, m *discordgo.Message)

OnMessageCreate discord hook

func (*FilterModule) OnMessageUpdate

func (w *FilterModule) OnMessageUpdate(info *bot.GuildInfo, m *discordgo.Message)

OnMessageUpdate discord hook

func (*FilterModule) UpdateRegex

func (w *FilterModule) UpdateRegex(filter string, info *bot.GuildInfo) (err error)

UpdateRegex updates all filter regexes

Jump to

Keyboard shortcuts

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