Bot::Cobalt::Conf::File::Core - Bot::Cobalt core config
my $core_cfg = Bot::Cobalt::Conf::File::Core->new( cfg_path => $path_to_cobalt_cf, ); my $paths_hash = $core_cfg->paths; my $lang = $core_cfg->language; my $irc_hash = $core_cfg->irc; my $opts_hash = $core_cfg->opts;
This is the Bot::Cobalt::Conf::File subclass for "cobalt.conf" (the core Bot::Cobalt configuration file).
From a Bot::Cobalt plugin instance it would normally be accessed something like:
use Bot::Cobalt; my $core_cfg = core()->get_core_cfg;
Returns the 'IRC:' directive as a HASH.
Returns the 'Language:' directive as a string.
Returns the 'Opts:' directive as a HASH.
Returns the 'Paths:' directive as a HASH.
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.