Documentation ¶
Index ¶
- Constants
- type BotCommand
- func (bc BotCommand) Apb(event BotCommand) (response Response, err error)
- func (c BotCommand) Caffeine(event BotCommand) (response Response, err error)
- func (bc BotCommand) Emote(event BotCommand) (response Response, err error)
- func (bc BotCommand) Help(event BotCommand) (response Response, err error)
- func (bc BotCommand) Insult(event BotCommand) (response Response, err error)
- func (bc BotCommand) Message(event BotCommand) (response Response, err error)
- func (bc BotCommand) Praise(event BotCommand) (response Response, err error)
- func (bc BotCommand) Quote(event BotCommand) (response Response, err error)
- func (bc BotCommand) React(event BotCommand) (response Response, err error)
- func (bc BotCommand) Roll(event BotCommand) (response Response, err error)
- func (bc BotCommand) Say(event BotCommand) (response Response, err error)
- type BotCommandHelp
- type Commands
- type HelpResponse
- type Method
- type Response
Constants ¶
View Source
const ( Err int = -1 Say = 0 Emote = 1 Reply = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotCommand ¶
type BotCommand struct {
// contains filtered or unexported fields
}
func (BotCommand) Apb ¶
func (bc BotCommand) Apb(event BotCommand) (response Response, err error)
func (BotCommand) Caffeine ¶
func (c BotCommand) Caffeine(event BotCommand) (response Response, err error)
func (BotCommand) Emote ¶
func (bc BotCommand) Emote(event BotCommand) (response Response, err error)
func (BotCommand) Help ¶
func (bc BotCommand) Help(event BotCommand) (response Response, err error)
func (BotCommand) Insult ¶
func (bc BotCommand) Insult(event BotCommand) (response Response, err error)
func (BotCommand) Message ¶
func (bc BotCommand) Message(event BotCommand) (response Response, err error)
func (BotCommand) Praise ¶
func (bc BotCommand) Praise(event BotCommand) (response Response, err error)
func (BotCommand) Quote ¶
func (bc BotCommand) Quote(event BotCommand) (response Response, err error)
func (BotCommand) React ¶
func (bc BotCommand) React(event BotCommand) (response Response, err error)
func (BotCommand) Roll ¶
func (bc BotCommand) Roll(event BotCommand) (response Response, err error)
func (BotCommand) Say ¶
func (bc BotCommand) Say(event BotCommand) (response Response, err error)
type BotCommandHelp ¶
type BotCommandHelp struct{}
func (BotCommandHelp) Praise ¶
func (h BotCommandHelp) Praise(request BotCommand) (response HelpResponse)
func (BotCommandHelp) React ¶
func (h BotCommandHelp) React(request BotCommand) (response HelpResponse)
func (BotCommandHelp) Roll ¶
func (h BotCommandHelp) Roll(request BotCommand) (response HelpResponse)
type Commands ¶
type Commands struct { Mm *mmclient.MMClient Settings *settings.Settings // contains filtered or unexported fields }
func (*Commands) HandleCommandMsgFromWebSocket ¶
func (c *Commands) HandleCommandMsgFromWebSocket(event *model.WebSocketEvent) (Response, error)
func (*Commands) NewBotCommandFromPost ¶
func (c *Commands) NewBotCommandFromPost(post string, sender string) (BotCommand, error)
type HelpResponse ¶
Click to show internal directories.
Click to hide internal directories.