App-RoboBot
view release on metacpan or search on metacpan
lib/App/RoboBot/Network/IRC.pm view on Meta::CPAN
package App::RoboBot::Network::IRC;
$App::RoboBot::Network::IRC::VERSION = '4.004';
use v5.20;
use namespace::autoclean;
use Moose;
use MooseX::SetOnce;
use AnyEvent;
use AnyEvent::IRC::Client;
use Data::Dumper;
use Text::Wrap qw( wrap );
use Time::HiRes qw( usleep );
use App::RoboBot::Channel;
use App::RoboBot::Message;
use App::RoboBot::Nick;
extends 'App::RoboBot::Network';
has '+type' => (
default => 'irc',
);
has 'host' => (
is => 'ro',
isa => 'Str',
required => 1,
);
has 'port' => (
is => 'ro',
isa => 'Int',
default => 6667,
);
has 'ssl' => (
is => 'ro',
isa => 'Bool',
default => 0,
);
has 'username' => (
is => 'ro',
isa => 'Str',
);
has 'password' => (
is => 'ro',
isa => 'Str',
);
has 'client' => (
is => 'ro',
isa => 'AnyEvent::IRC::Client',
default => sub { AnyEvent::IRC::Client->new },
);
has 'nick_cache' => (
is => 'rw',
isa => 'HashRef',
default => sub { {} },
);
( run in 1.967 second using v1.01-cache-2.11-cpan-39bf76dae61 )