Bot::Cobalt::Common - Import commonly-used tools and constants
package Bot::Cobalt::Plugin::User::MyPlugin; ## Import useful stuff: use Bot::Cobalt::Common;
This is a small exporter module providing easy inclusion of commonly used tools and constants to make life easier on plugin authors.
strictures are also enabled. This will turn on 'strict' and make (most) warnings fatal.
Try::Tiny is always imported.
PLUGIN_EAT_NONE (Object::Pluggable::Constants)
PLUGIN_EAT_ALL (Object::Pluggable::Constants)
All of the Types::Standard and List::Objects::Types types are exported.
See IRC::Utils for details.
decode_irc lc_irc uc_irc eq_irc strip_color strip_formatting
parse_user normalize_mask matches_mask
is_valid_nick_name is_valid_chan_name
See Bot::Cobalt::Utils for details.
rplprintf color
glob_to_re glob_to_re_str glob_grep
mkpasswd passwdcmp
timestr_to_secs secs_to_timestr secs_to_str secs_to_str_y
carp
croak confess
You can load groups of commands by importing named tags:
use Bot::Cobalt::Common qw/ :types :string /;
Exports PLUGIN_EAT_NONE, PLUGIN_EAT_ALL constants from Object::Pluggable.
Exports carp, croak, and confess from Carp.
Exports parse_user, normalize_mask, and matches_mask from IRC::Utils.
Exports mkpasswd and passwdcmp from App::bmkpasswd.
Exports from Bot::Cobalt::Utils: color, rplprintf, glob_to_re, glob_to_re_str, glob_grep
Exports from IRC::Utils: lc_irc, eq_irc, uc_irc, decode_irc, strip_color, strip_formatting
Exports timestr_to_secs, secs_to_timestr, secs_to_str, and secs_to_str_y from Bot::Cobalt::Utils.
Exports all Type::Tiny types from List::Objects::Types and Types::Standard.
Exports is_valid_nick_name and is_valid_chan_name from IRC::Utils.
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.