Documentation ¶
Overview ¶
This package contains some plugin related utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load is called in the bot initialization and allows all registered plugins to initialize any necessary resources.
func Register ¶
func Register(pf PluginFunc)
Register registers a new plugin constructor. This is typically called in the init() function of a plugin package.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base represents a single plugin instance. It takes care of some basic housekeeping.
func (*Base) LoadConfig ¶
LoadConfig reads the ini configuration file for the given plugin. Returns nil if the file does not exist.
Click to show internal directories.
Click to hide internal directories.