NAME
Bot::BasicBot::Pluggable::Module::HTTPIRCGW - A Simple HTTP Action for Bot::BasicBot::Pluggable
SYNOPSIS
use Bot::BasicBot::Pluggable::Module::Delicious
my $bot = Bot::BasicBot::Pluggable->new(...);
$bot->load("HTTPIRCGW");
my $HttpIrcGw_handler = $bot->handler("HTTPIRCGW");
$HttpIrcGw_handler->set($action_file);
here is an exmple of the action file:
^!(fnord)$ # GET=>http://xxx.xxx/fnordtune.php # sub{$web_out=~s/\r\n//g;}
^!todo # POST=>http://xxx.xx/wiki/?add_todoTNOnick=$who&text=$body # sub{$web_out = "task added";}
# are delimiters
first there is a regex for a command
the action, GET or POST, with the url, in the case of a POST, TNO is the separator
then a sub with what to do (parsing, result), in the var "$web_out"
DESCRIPTION
A plugin module for Bot::BasicBot::Pluggable to perform HTTP actions
USAGE
BUGS
SUPPORT
AUTHOR
Franck Cuny
CPAN ID: FRANCKC
tirnanog
franck@breizhdev.net
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.