Bot::Cobalt::Conf - Load Bot::Cobalt configuration files
## Load: ## - cobalt.conf ## - channels.conf ## - plugins.conf ## - configured plugin-specific confs my $cfg_obj = Bot::Cobalt::Conf->new( etc => $path_to_etc_dir ); my $cfg_hash = $cfg_obj->read_cfg;
Normally used by frontends to create a configuration hash to pass to Bot::Cobalt::Core's constructor.
Loads Cobalt configuration files from a directory (specified via etc at construction) and produces a hash with the following keys:
Loaded from cobalt.conf
cobalt.conf
The core Cobalt configuration.
Loaded from channels.conf
channels.conf
Configured context and channel settings.
Keyed on context name. Per-context hash is keyed on channel name.
Loaded from plugins.conf
plugins.conf
Configured plugins. Keyed on plugin alias.
Per-plugin options loaded from either PluginOpts directives in plugins.conf or plugin-specific configuration files included via Config directives. Keyed on plugin alias.
Jon Portnoy <avenj@cobaltirc.org>
To install Bot::Cobalt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Cobalt
CPAN shell
perl -MCPAN -e shell install Bot::Cobalt
For more information on module installation, please visit the detailed CPAN module installation guide.