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;
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 <firstname.lastname@example.org>