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

POE::Component::IRC::Cookbook::Hailo3pm

A blabbering irc bot

Usage

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.

Overview

 #!/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();

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8–9
  4. 10–11
  5. 12–13

Author

Hinrik Örn Sigurðsson, [email protected]

From libpoe-component-irc-perl 6.93+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.