Documentation ¶
Overview ¶
Package plugins defines support for plugins.
Each IRC command should have an associated symbol (function name) in the plugins. This function should have this signature: func Example(args []string, e *irc.Event) (reply string, action bool)
Each plugins must have a config file which defines IRC commands and the functions, matching the signature above, that implements them:
``` command1: function1 command2: function2 ```
Package plugins implements plugins support
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoExportedMatchers = errors.New("plugin has no exported matchers")
)
Exported error vars
Functions ¶
func LoadPlugins ¶
LoadPlugins loads plugins and their configuration into memory
Types ¶
type PluginConf ¶
type PluginConf struct { Config map[string]interface{} `yaml:"config"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.