Bot::Cobalt::Common - Import commonly-used tools and constants
package Bot::Cobalt::Plugin::User::MyPlugin; our $VERSION = '0.10'; ## 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 is also enabled. This will turn on 'strict' and make all warnings fatal.
PLUGIN_EAT_NONE (Object::Pluggable::Constants)
PLUGIN_EAT_ALL (Object::Pluggable::Constants)
All of the MooX::Types::MooseLike::Base types are exported.
See MooX::Types::MooseLike::Base for details.
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
carp
confess croak
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, and secs_to_str from Bot::Cobalt::Utils.
Exports the Moo types from MooX::Types::MooseLike::Base.
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.