Bot::Cobalt::Conf - Bot::Cobalt configuration manager
my $cfg = Bot::Cobalt::Conf->new( etc => $path_to_etc_dir, ); ## Or with specific paths ## (Still need an etcdir) my $cfg = Bot::Cobalt::Conf->new( etc => $path_to_etc_dir, # Default paths are probably fine (based on etc, above): path_to_core_cf => $core_cf_path, path_to_channels_cf => $chan_cf_path, path_to_plugins_cf => $plugins_cf_path, ); ## Bot::Cobalt::Conf::File::Core $cfg->core; ## Bot::Cobalt::Conf::File::Channels $cfg->channels; ## Bot::Cobalt::Conf::File::Plugins $cfg->plugins;
A configuration manager class for Bot::Cobalt -- Bot::Cobalt::Core loads and accesses configuration objects via instances of this class.
Bot::Cobalt::Conf::File::Core
Bot::Cobalt::Conf::File::Channels
Bot::Cobalt::Conf::File::Plugins
Bot::Cobalt::Conf::File::PerPlugin
Bot::Cobalt::Conf::File
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.