Documentation ¶
Index ¶
- Variables
- func CheckMessageKeyword(message string, keyword string) (bool, string)
- func CheckMessageKeywords(message string, keywords ...string) (bool, string)
- type BotEvent
- func (b *BotEvent) ArchivesURL() string
- func (b *BotEvent) BaseText() string
- func (b *BotEvent) BotCmdArgs(message string) ([]string, bool)
- func (b *BotEvent) BotCmdMessage(message string) (string, bool)
- func (b *BotEvent) BotID() string
- func (b *BotEvent) BotLinkID() string
- func (b *BotEvent) BotLinkIDForClient() string
- func (b *BotEvent) BotName() string
- func (b *BotEvent) Channel() string
- func (b *BotEvent) ChannelID() string
- func (b *BotEvent) ChannelName() string
- func (b *BotEvent) GetMessageSender() MessageSender
- func (b *BotEvent) Reply(message string)
- func (b *BotEvent) SendMessage(message string, channel string)
- func (b *BotEvent) SenderID() string
- func (b *BotEvent) SenderName() string
- type BotID
- type BotMessagePlugin
- type DebugMessageSender
- type MessageSender
- type Plugin
- type PluginManager
- type Utils
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultUtils = NewUtils(nil)
DefaultUtils default utils
Functions ¶
func CheckMessageKeyword ¶
CheckMessageKeyword is Deprecated
Types ¶
type BotEvent ¶
type BotEvent struct {
// contains filtered or unexported fields
}
func NewBotEvent ¶
func NewBotEvent(sender MessageSender, domain, botID, botName, senderID, senderName, text, channelID, channelName, timestamp string) BotEvent
func NewTestEvent ¶
func (*BotEvent) ArchivesURL ¶
ArchivesURL return copy link archives url
func (*BotEvent) BotLinkIDForClient ¶
func (*BotEvent) ChannelName ¶
func (*BotEvent) GetMessageSender ¶
func (b *BotEvent) GetMessageSender() MessageSender
func (*BotEvent) SendMessage ¶
func (*BotEvent) SenderName ¶
type BotMessagePlugin ¶
type DebugMessageSender ¶
type DebugMessageSender struct { }
func (DebugMessageSender) SendMessage ¶
func (b DebugMessageSender) SendMessage(message string, channel string)
type MessageSender ¶
type Plugin ¶
type Plugin struct { Key interface{} BotMessagePlugin }
type PluginManager ¶
type PluginManager interface { AddPlugin(key interface{}, val BotMessagePlugin) ExecPlugins(botEvent BotEvent) StopReply() StartReply() IsReply() bool GetPlugins() []Plugin // deepCopy }
func NewPluginManager ¶
func NewPluginManager(sender MessageSender) PluginManager
type Utils ¶
type Utils struct {
// contains filtered or unexported fields
}
Utils util
func (Utils) QuotationOrSpaceFields ¶
QuotationOrSpaceFields シングルクォーテーションとダブルクォーテーションを考慮して文字列を空白区切りします
Click to show internal directories.
Click to hide internal directories.