Documentation
¶
Overview ¶
Package plugins defines and maintains supported bot plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶
func Dispatch(w irc.ResponseWriter, r *irc.Request)
Dispatch sends the given, incoming IRC message to all plugins.
Types ¶
type Plugin ¶
type Plugin interface {
// Load initializes the module and loads any internal resources
// which may be required.
Load(irc.Profile) error
// Unload cleans the module up and unloads any internal resources.
Unload(irc.Profile) error
// Dispatch sends the given, incoming IRC message to the plugin for
// processing as it sees fit.
Dispatch(irc.ResponseWriter, *irc.Request)
}
Plugin defines the interface for a single plugin.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package action binds action commands.
|
Package action binds action commands. |
|
Package admin defines administrative bot commands.
|
Package admin defines administrative bot commands. |
|
Package alarm allows a user to schedule an alarm with a custom message.
|
Package alarm allows a user to schedule an alarm with a custom message. |
|
Package dictionary provides a custom dictionary.
|
Package dictionary provides a custom dictionary. |
|
Package stats retains a listing of user host names, mapped to nicknames they have ever been seen using, along with some other, rudimentary user statistics.
|
Package stats retains a listing of user host names, mapped to nicknames they have ever been seen using, along with some other, rudimentary user statistics. |
|
Package url defines a plugin, which finds and extracts URLs from incoming chat data.
|
Package url defines a plugin, which finds and extracts URLs from incoming chat data. |
|
youtube
Package youtube provides a minimal set of bindings for Youtube's Data API v3.
|
Package youtube provides a minimal set of bindings for Youtube's Data API v3. |
|
Package weather provides commands to do current weather lookups, as well as weather forecasts for specific locations.
|
Package weather provides commands to do current weather lookups, as well as weather forecasts for specific locations. |
Click to show internal directories.
Click to hide internal directories.