Query: poe::component::irc::plugin::bottraffic
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
POE::Component::IRC::Plugin::BotTraffic(3pm) User Contributed Perl Documentation POE::Component::IRC::Plugin::BotTraffic(3pm)NAMEPOE::Component::IRC::Plugin::BotTraffic - A PoCo-IRC plugin that generates events when you send messagesSYNOPSISuse 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 "; return; }DESCRIPTIONPOE::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"new" No arguments required. Returns a plugin object suitable for feeding to POE::Component::IRC's "plugin_add" method.OUTPUT EVENTSThese are the events generated by the plugin. Both events have "ARG0" set to an arrayref of recipients and "ARG1" the text that was sent. "irc_bot_public" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent. "irc_bot_msg" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent. "irc_bot_action" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent. "irc_bot_notice" "ARG0" will be an arrayref of recipients. "ARG1" will be the text sent.AUTHORChris 'BinGOs' Williams [chris@bingosnet.co.uk]SEE ALSOPOE::Component::IRC perl v5.14.2 2011-12-07 POE::Component::IRC::Plugin::BotTraffic(3pm)
Similar Topics in the Unix Linux Community |
---|
How to setup a shell to use IRC behind firewall help |
GOZERBOT 0.8 (Default branch) |
Microline Component ToolKit equivalent |
How does IRC obtain the users in a channel? |
Tilde commands not working |