POE::Component::IRC::Plugin::Magic8BallMagic 8 Ball plugin for IRC | |
Download |
POE::Component::IRC::Plugin::Magic8Ball Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Zoffix Znet
- Publisher web site:
- http://search.cpan.org/~zoffix/
POE::Component::IRC::Plugin::Magic8Ball Tags
POE::Component::IRC::Plugin::Magic8Ball Description
Magic 8 Ball plugin for IRC POE::Component::IRC::Plugin::Magic8Ball is a Perl module, a POE::Component::IRC plugin which uses POE::Component::IRC::Plugin for its base. It accepts input from public channel events, /notice messages as well as /msg (private messages); although that can be configured at will.SYNOPSIS use strict; use warnings; use POE qw(Component::IRC Component::IRC::Plugin::Magic8Ball); my $irc = POE::Component::IRC->spawn( nick => 'Magic8BallBot', server => 'irc.freenode.net', port => 6667, ircname => 'Magic8BallBot', ); POE::Session->create( package_states => , ], ); $poe_kernel->run; sub _start { $irc->yield( register => 'all' ); $irc->plugin_add( 'Magic8Ball' => POE::Component::IRC::Plugin::Magic8Ball->new ); $irc->yield( connect => {} ); } sub irc_001 { $irc->yield( join => '#zofbot' ); } Magic8BallBot, 8ball do you like me? Zoffix, Ask again later. Magic8BallBot, 8ball meow! Zoffix, Outlook good. Requirements: · Perl
POE::Component::IRC::Plugin::Magic8Ball Related Software