POE::Component::IRC::Plugin::Fortune

fortune cookies plugin for IRC
Download

POE::Component::IRC::Plugin::Fortune Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Zoffix Znet
  • Publisher web site:
  • http://search.cpan.org/~zoffix/

POE::Component::IRC::Plugin::Fortune Tags


POE::Component::IRC::Plugin::Fortune Description

fortune cookies plugin for IRC POE::Component::IRC::Plugin::Fortune is a Perl module that brings all the joys of the fortune *nix program to IRC. You do need to have the actual program installed. Future versions may incorporate the Fortune module to be used instead; give me a shout if you would like that.This module is 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::Fortune); my $irc = POE::Component::IRC->spawn( nick => 'FortuneBot', server => 'irc.freenode.net', port => 6667, ircname => 'FortuneBot', ); POE::Session->create( package_states => , ], ); $poe_kernel->run; sub _start { $irc->yield( register => 'all' ); $irc->plugin_add( 'fortune' => POE::Component::IRC::Plugin::Fortune->new ); $irc->yield( connect => {} ); } sub irc_001 { $irc->yield( join => '#zofbot' ); } < FortuneBot > Zoffix, Try the Moo Shu Pork. It is especially good today. < Zoffix > FortuneBot, fortune < FortuneBot > Zoffix, You will be held hostage by a radical group. < Zoffix > FortuneBot, fortune < FortuneBot > Zoffix, Q: What do you say to a New Yorker with a job? A: Big Mac, fries and a Coke, please! Requirements: · Perl


POE::Component::IRC::Plugin::Fortune Related Software