Documentation ¶
Overview ¶
Package util contains common functionality for "utilities" required by the bot.
This file is for processing the application's configuration from a YAML file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IRC *ircConfig `yaml:"irc"` Plugins map[string]*pluginConfig `yaml:"plugins"` UnparsedLogLevel string `yaml:"log_level"` LogLevel logrus.Level }
Config contains the entire application's configuration.
func (*Config) EnabledPlugins ¶
type Plugin ¶
Plugin is a contributed plugin. It is wrapped with this struct so the Run function can be added for running user input against commands.
func LoadPlugins ¶
LoadPlugins loads contributed plugins by filename. Any plugin which fails to load or doesn't have the correct function will instead add an error to the errors list.
Click to show internal directories.
Click to hide internal directories.