NAME

Bot::Cobalt::Conf::File::Core - Bot::Cobalt core config

SYNOPSIS

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;

DESCRIPTION

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;

irc

Returns the 'IRC:' directive as a HASH.

language

Returns the 'Language:' directive as a string.

opts

Returns the 'Opts:' directive as a HASH.

paths

Returns the 'Paths:' directive as a HASH.

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>