Bot::BasicBot::Pluggable::Module::HTTPIRCGW - A Simple HTTP Action for Bot::BasicBot::Pluggable
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"
A plugin module for Bot::BasicBot::Pluggable to perform HTTP actions
Franck Cuny CPAN ID: FRANCKC tirnanog franck@breizhdev.net
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.
Bot::BasicBot::Pluggable
Bot::BasicBot::Pluggable::Module::Google
To install Bot::BasicBot::Pluggable::Module::HTTPIRCGW, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::BasicBot::Pluggable::Module::HTTPIRCGW
CPAN shell
perl -MCPAN -e shell install Bot::BasicBot::Pluggable::Module::HTTPIRCGW
For more information on module installation, please visit the detailed CPAN module installation guide.