stalin

package
v0.0.0-...-ca060dc Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanConfusables

func CleanConfusables(s string) string

func Filter

func Filter(s string) string

func LowerLettersOnly

func LowerLettersOnly(s string) string

Types

type Settings

type Settings struct {
	BlacklistedWords  []string
	ExceptionChannels []discord.ChannelID
}

Settings contains kv store for settings

type Stalin

type Stalin struct {
	Ctx *bot.Context
	// contains filtered or unexported fields
}

func New

func New(node db.Node) *Stalin

func (*Stalin) Censor

func (s *Stalin) Censor(m *gateway.MessageCreateEvent, args *bot.ArgumentParts) (string, error)

func (*Stalin) Except

func (s *Stalin) Except(m *gateway.MessageCreateEvent, args *bot.ArgumentParts) error

func (*Stalin) HandlerEdit

func (s *Stalin) HandlerEdit(e *gateway.MessageUpdateEvent) error

HandlerEdit wraps around MessageEdit events

func (*Stalin) List

func (s *Stalin) List(m *gateway.MessageCreateEvent, flags listFlags) (*discord.Embed, error)

func (*Stalin) Reset

func (s *Stalin) Reset(m *gateway.MessageCreateEvent) (string, error)

func (*Stalin) Setup

func (s *Stalin) Setup(sub *bot.Subcommand)

Jump to

Keyboard shortcuts

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