Documentation ¶
Index ¶
- func ProcessMessageHandler(command TextReplyCommand) processor.OptionalHandleFunction
- func RegisterPlugin(plugins ...MessagePlugin)
- type ImageReplyCommand
- type ImageReplyMessageBaseImplementation
- type MessageCommand
- type MessageCommandInfo
- type MessageCommandType
- type MessagePlugin
- type MessagePluginInfo
- type TextReplyCommand
- type TextReplyMessageBaseImplementation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessMessageHandler ¶
func ProcessMessageHandler(command TextReplyCommand) processor.OptionalHandleFunction
func RegisterPlugin ¶
func RegisterPlugin(plugins ...MessagePlugin)
Types ¶
type ImageReplyCommand ¶
type ImageReplyCommand MessageCommand
type ImageReplyMessageBaseImplementation ¶
type ImageReplyMessageBaseImplementation struct{}
func (ImageReplyMessageBaseImplementation) Type ¶
func (i ImageReplyMessageBaseImplementation) Type() MessageCommandType
type MessageCommand ¶
type MessageCommandInfo ¶
type MessageCommandInfo struct { Name string Description string Type MessageCommandType Example []string }
MessageCommandInfo 消息命令信息
type MessageCommandType ¶
type MessageCommandType string
const ( TextReplyMessageCommandType MessageCommandType = "TextReplyMessageCommandType" ImageReplyMessageCommandType MessageCommandType = "ImageReplyMessageCommandType" )
type MessagePlugin ¶
type MessagePlugin interface { TriggerKey() string Commands() []MessageCommand }
type MessagePluginInfo ¶
MessagePluginInfo 消息插件信息
type TextReplyCommand ¶
type TextReplyCommand MessageCommand
type TextReplyMessageBaseImplementation ¶
type TextReplyMessageBaseImplementation struct{}
func (TextReplyMessageBaseImplementation) Type ¶
func (t TextReplyMessageBaseImplementation) Type() MessageCommandType
Click to show internal directories.
Click to hide internal directories.