Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot is struct of bot
func (*Bot) OnCondition ¶
func (bot *Bot) OnCondition(condition Condition, callback OnMessageCallback)
OnCondition registers callback on any message that satisfies condition
func (*Bot) OnMessage ¶
func (bot *Bot) OnMessage(messageText string, callback OnMessageCallback)
OnMessage registers callback on message
type BotParams ¶
type BotParams struct {
Token string `json:"token"`
}
BotParams is structure with params of the bot
Click to show internal directories.
Click to hide internal directories.