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::PLUGIN::BOTTRAFFIC (3)

.ds Aq ’

NAME

POE::Component::IRC::Plugin::BotTraffic - A PoCo-IRC plugin that generates events when you send messages

CONTENTS

SYNOPSIS



 use POE::Component::IRC::Plugin::BotTraffic;

 $irc->plugin_add( BotTraffic, POE::Component::IRC::Plugin::BotTraffic->new() );

 sub irc_bot_public {
     my ($kernel, $heap) = @_[KERNEL, HEAP];
     my $channel = $_[ARG0]->[0];
     my $what = $_[ARG1];

     print "I said $what on channel $channel\n";
     return;
 }



DESCRIPTION

POE::Component::IRC::Plugin::BotTraffic is a POE::Component::IRC plugin. It watches for when your bot sends PRIVMSGs and NOTICEs to the server and generates the appropriate events.

These events are useful for logging what your bot says.

METHODS

CWnew

No arguments required. Returns a plugin object suitable for feeding to POE::Component::IRC’s plugin_add method.

OUTPUT EVENTS

These are the events generated by the plugin. Both events have ARG0 set to an arrayref of recipients and ARG1 the text that was sent.

CWirc_bot_public

ARG0 will be an arrayref of recipients. ARG1 will be the text sent.

CWirc_bot_msg

ARG0 will be an arrayref of recipients. ARG1 will be the text sent.

CWirc_bot_action

ARG0 will be an arrayref of recipients. ARG1 will be the text sent.

CWirc_bot_notice

ARG0 will be an arrayref of recipients. ARG1 will be the text sent.

AUTHOR

Chris ’BinGOs’ Williams [chris@bingosnet.co.uk]

SEE ALSO

POE::Component::IRC
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 POE::COMPONENT::IRC::PLUGIN::BOTTRAFFIC (3) 2014-06-28

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