Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commit = ""
View Source
var ErrUsage = errors.New("Wrong command usage")
View Source
var Version = ""
Functions ¶
func SetDefaults ¶ added in v1.0.0
func SetDefaults()
Types ¶
type Bot ¶
type Bot interface { // Register registers Trigger/Command only. Register(plugins ...interface{}) Commands() []Command }
Bot handles trigger/command execution
type IRCClient ¶ added in v0.7.2
type IRCClient interface { Connect() error Close() IsRegistered(nick string) bool InChannel(nick string) bool IsAdmin(nick string) bool OnEvent(callback func(event interface{})) Send(message string) Sendf(format string, a ...interface{}) }
IRCClient is a simplified client given to plugins.
Click to show internal directories.
Click to hide internal directories.