GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  POE::COMPONENT::IRC::COOKBOOK::HAILO (3)

.ds Aq ’

NAME

POE::Component::IRC::Cookbook::Hailo - A blabbering IRC bot

CONTENTS

SYNOPSIS

This bot uses POE::Component::IRC::Plugin::Hailo for most of its magic. As of yet, this recipe just contains a SYNOPSIS that is copied from its documentation.

DESCRIPTION



 #!/usr/bin/env perl

 use strict;
 use warnings;
 use POE;
 use POE::Component::IRC::Plugin::AutoJoin;
 use POE::Component::IRC::Plugin::Connector;
 use POE::Component::IRC::Plugin::Hailo;
 use POE::Component::IRC::State;

 my $irc = POE::Component::IRC::State->spawn(
     nick   => Brainy,
     server => irc.freenode.net,
 );

 my @channels = (#public_chan, #bot_chan);

 $irc->plugin_add(AutoJoin, POE::Component::IRC::Plugin::AutoJoin->new(Channels => \@channels));
 $irc->plugin_add(Connector, POE::Component::IRC::Plugin::Connector->new());
 $irc->plugin_add(Hailo, POE::Component::IRC::Plugin::Hailo->new(
     Own_channel    => #bot_chan,
     Ignore_regexes => [ qr{\w+://\w} ], # ignore lines containing URLs
     Hailo_args     => {
         brain_resource => brain.sqlite,
     },
 ));

 $irc->yield(connect);
 $poe_kernel->run();



AUTHOR

Hinrik Oern Sigurd`sson, hinrik.sig@gmail.com
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 POE::COMPONENT::IRC::COOKBOOK::HAILO (3) 2014-06-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.