AnySan::Provider::IRC - AnySan provide IRC protocol
use AnySan; use AnySan::Provider::IRC; my $irc = irc 'chat.example.net', # irc servername *required port => 6667, # default is 6667 password => 'server_password', key => 'example1', # you can write, unique key *required nickname => 'AnySan1', # irc nickname *required recive_commands => [ 'PRIVMSG', 'NOTICE' ], # default is [ 'PRIVMSG' ] interval => 2, # default is 2(sec), defence of Excess Flood wait_queue_size => 100, # default is 100, for send message buffer size on_connect => sub {}, # optional on_disconnect => sub {}, # optional channels => { '#anysan1' => {}, '#anysan2' => { key => 'channel_key', }, }; $irc->send_message('irc message', channel => '#irc_channel'); $irc->send_message('irc message', channel => '#irc_channel', privmsg => 'PRIVMSG'); $irc->join_channel('#channel'); $irc->join_channel('#channel', 'channel_key'); $irc->leave_channel('#channel');
Kazuhiro Osawa <yappo <at> shibuya <döt> pl>
AnySan, AnyEvent::IRC::Client
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '<döt>'. Assuming UTF-8
To install AnySan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnySan
CPAN shell
perl -MCPAN -e shell install AnySan
For more information on module installation, please visit the detailed CPAN module installation guide.