tabulatron

package
v0.0.0-...-2d706f6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckinHandler

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

func NewCheckinHandler

func NewCheckinHandler(t *Tabulatron) *CheckinHandler

func (*CheckinHandler) CanHandle

func (h *CheckinHandler) CanHandle(_ disgord.Session, evt *disgord.MessageCreate) bool

func (*CheckinHandler) Handle

func (h *CheckinHandler) Handle(s disgord.Session, evt *disgord.MessageCreate)

type ClearHandler

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

func NewClearHandler

func NewClearHandler(t *Tabulatron) *ClearHandler

func (*ClearHandler) CanHandle

func (h *ClearHandler) CanHandle(_ disgord.Session, evt *disgord.MessageCreate) bool

func (*ClearHandler) Handle

func (h *ClearHandler) Handle(s disgord.Session, evt *disgord.MessageCreate)

type MessageHandler

type MessageHandler interface {
	CanHandle(disgord.Session, *disgord.MessageCreate) bool
	Handle(disgord.Session, *disgord.MessageCreate)
}

type MotionHandler

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

func NewMotionHandler

func NewMotionHandler(t *Tabulatron) *MotionHandler

func (*MotionHandler) CanHandle

func (h *MotionHandler) CanHandle(_ disgord.Session, evt *disgord.MessageCreate) bool

func (*MotionHandler) Handle

func (h *MotionHandler) Handle(s disgord.Session, evt *disgord.MessageCreate)

type PullTabbycatHandler

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

func NewPullTabbycatHandler

func NewPullTabbycatHandler(t *Tabulatron) *PullTabbycatHandler

func (*PullTabbycatHandler) CanHandle

func (*PullTabbycatHandler) Handle

type RegHandler

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

func NewRegHandler

func NewRegHandler(t *Tabulatron) *RegHandler

func (*RegHandler) CanHandle

func (h *RegHandler) CanHandle(_ disgord.Session, evt *disgord.MessageCreate) bool

func (*RegHandler) Handle

func (h *RegHandler) Handle(s disgord.Session, evt *disgord.MessageCreate)

type TabbycatRoundsHandler

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

func NewTabbycatRoundsHandler

func NewTabbycatRoundsHandler(t *Tabulatron) *TabbycatRoundsHandler

func (*TabbycatRoundsHandler) CanHandle

func (*TabbycatRoundsHandler) Handle

type Tabulatron

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

func New

func New(discord *disgord.Client, database *db.Database, tabbycat *tabbycat.Tabbycat, p *pundit.Pundit) *Tabulatron

func (*Tabulatron) AcknowledgeMessage

func (t *Tabulatron) AcknowledgeMessage(message *disgord.Message)

func (*Tabulatron) CreateDMAndSendMessage

func (t *Tabulatron) CreateDMAndSendMessage(snowflake disgord.Snowflake, message string)

func (*Tabulatron) HandleDeparture

func (t *Tabulatron) HandleDeparture(s disgord.Session, evt *disgord.GuildMemberRemove)

func (*Tabulatron) HandleMessage

func (t *Tabulatron) HandleMessage(s disgord.Session, evt *disgord.MessageCreate)

func (*Tabulatron) RejectMessage

func (t *Tabulatron) RejectMessage(message *disgord.Message)

func (*Tabulatron) ReplyMessage

func (t *Tabulatron) ReplyMessage(message *disgord.Message, reply string, a ...interface{}) *disgord.Message

Jump to

Keyboard shortcuts

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