|
NAMEPOE::Component::IRC::Plugin::CoreList - A POE::Component::IRC plugin that provides Module::CoreList goodness. VERSIONversion 1.06 SYNOPSIS use strict;
use warnings;
use POE qw(Component::IRC Component::IRC::Plugin::CoreList);
my $nickname = 'Core' . $$;
my $ircname = 'CoreList Bot';
my $ircserver = 'irc.bleh.net';
my $port = 6667;
my $channel = '#IRC.pm';
my $irc = POE::Component::IRC->spawn(
nick => $nickname,
server => $ircserver,
port => $port,
ircname => $ircname,
debug => 0,
plugin_debug => 1,
options => { trace => 0 },
) or die "Oh noooo! $!";
POE::Session->create(
package_states => [
'main' => [ qw(_start irc_001) ],
],
);
$poe_kernel->run();
exit 0;
sub _start {
# Create and load our CoreList plugin
$irc->plugin_add( 'CoreList' =>
POE::Component::IRC::Plugin::CoreList->new( command => 'core' ) );
$irc->yield( register => 'all' );
$irc->yield( connect => { } );
undef;
}
sub irc_001 {
$irc->yield( join => $channel );
undef;
}
DESCRIPTIONPOE::Component::IRC::Plugin::CoreList is a port of Bot::BasicBot::Pluggable::Module::CoreList to the POE::Component::IRC plugin framework. It is a frontend to the excellent Module::CoreList module which will let you know what modules shipped with which versions of perl, over IRC. CONSTRUCTOR
IRC USAGEThe bot replies to requests in the following form: <optional_command> <subcommand> [args] CommandsThe bot understand the following subcommands:
SEE ALSOPOE::Component::IRC Bot::BasicBot::Pluggable::Module::CoreList AUTHORS
COPYRIGHT AND LICENSEThis software is copyright (c) 2017 by Chris Williams and Philippe Bruhat. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|