wittymodule

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WittyModule

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

WittyModule is intended for any witty comments sweetie bot makes in response to what users say or do.

func New

func New(guild *bot.GuildInfo) *WittyModule

New instance of WittyModule

func (*WittyModule) Commands

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

Commands in the module

func (*WittyModule) Description

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

Description of the module

func (*WittyModule) Name

func (w *WittyModule) Name() string

Name of the module

func (*WittyModule) OnMessageCreate

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

OnMessageCreate discord hook

func (*WittyModule) UpdateRegex

func (w *WittyModule) UpdateRegex(info *bot.GuildInfo) bool

UpdateRegex updates the witty module regex

Jump to

Keyboard shortcuts

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