Bot::BasicBot::Pluggable::Module::HTTPIRCGW - A Simple HTTP Action for Bot::BasicBot::Pluggable


Bot-BasicBot-Pluggable-Module-HTTPIRCGW documentation  | view source Contained in the Bot-BasicBot-Pluggable-Module-HTTPIRCGW distribution.

Index


NAME

Top

Bot::BasicBot::Pluggable::Module::HTTPIRCGW - A Simple HTTP Action for Bot::BasicBot::Pluggable

SYNOPSIS

Top

    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

Top

A plugin module for Bot::BasicBot::Pluggable to perform HTTP actions

USAGE

Top

BUGS

Top

SUPPORT

Top

AUTHOR

Top

	Franck Cuny
	CPAN ID: FRANCKC
	tirnanog
	franck@breizhdev.net




COPYRIGHT

Top

SEE ALSO

Top

* Bot::BasicBot::Pluggable
* Bot::BasicBot::Pluggable::Module::Google

Bot-BasicBot-Pluggable-Module-HTTPIRCGW documentation  | view source Contained in the Bot-BasicBot-Pluggable-Module-HTTPIRCGW distribution.