Documentation
¶
Index ¶
- Variables
- func AddBotParser(name string, parser BotParser) error
- func ParseBots(cfg *Config) error
- func RunBot(bot Bot) error
- func Token() string
- type Actions
- type Admin
- type Author
- type Bot
- type BotParser
- type Config
- type Connection
- type Message
- type MessageFormatter
- type Messenger
- type Modable
- type Module
- type ModuleManager
- type NullMessenger
- type Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var Bots map[string]Bot
Functions ¶
func AddBotParser ¶
Types ¶
type Actions ¶
type Actions interface {
Messenger
MessageFormatter
Admin
}
type Bot ¶
type Bot interface {
Connection
Admin
Messenger
MessageFormatter
Modable
}
type Connection ¶
type MessageFormatter ¶
type ModuleManager ¶
type ModuleManager struct {
// contains filtered or unexported fields
}
func NewModManager ¶
func NewModManager(mods []Module, actions Actions) (*ModuleManager, error)
func (*ModuleManager) Run ¶
func (manager *ModuleManager) Run(stream Stream) error
func (*ModuleManager) Stop ¶
func (manager *ModuleManager) Stop()
type NullMessenger ¶
type NullMessenger struct{}
func (*NullMessenger) Send ¶
func (messenger *NullMessenger) Send(msg Message) error
Click to show internal directories.
Click to hide internal directories.