Bot::Cobalt::Conf::File::Channels - Bot::Cobalt channels conf
my $chan_cfg = Bot::Cobalt::Conf::File::Channels->new( cfg_path => $path_to_channels_cf, ); my $hash_for_context = $chan_cfg->context($context_name); my $this_channel = $hash_for_context->{$channel} || { };
This is the Bot::Cobalt::Conf::File subclass for "channels.conf."
This is a core configuration class; plugin authors should use get_channels_cfg instead:
use Bot::Cobalt; my $channels_cfg = core()->get_channels_cfg( $context_name );
The 'context' method takes a context name and returns the relevant hash of channels.
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.