POE::Component::IRC::Cookbook::Hailo man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

POE::Component::IRC::CUseroContributed)POE::Component::IRC::Cookbook::Hailo(3)

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

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 Sigur`sson, hinrik.sig@gmail.com

perl v5.14.1			  2010-POE::Component::IRC::Cookbook::Hailo(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net