Contructs a plugin object suitable to be fed to the everhungry POE::Component::IRC's plugin_add() method. Takes a bunch of arguments in key/value pairs but all of them are optional. Possible arguments are as follows:

trigger

->new( trigger => '[send_stuff_after_this_to_pastebin]', );

Optional. Any privmsg or notice messages sent by the bot which contain trigger in them will be split on the trigger and anything after the trigger will be pasted into the pastebin and replaced by the URI pointing to the pasted content. In other words if your trigger is (trigger) and your do $irc->yield( privmsg => '#zofbot' => 'blah (trigger) foos' ); then the actual message sent to channel #zofbot will be blah http://erxz.com/pb/8028 where the URI will be pointing to the pastebin page containing pasted text foos. Defaults to:[irc_to_pastebin] (note the square brackets)

pastebins

->new( pastebins => [ qw(http://p3m.org/pfn http://erxz.com/pb) ], );

Optional. The pastebins argument takes an arrayref of URIs each pointing to pastebin sites powered by Bot::Pastebot. Plugin will automatically iterate over specified list of pastebins on every paste request. Defaults to:[ qw(http://p3m.org/pfn) ]

max_tries

->new( max_tries => 3 )

Optional. If while pasting the content an error occured plugin will retry pasting into the next pastebin specified in pastebins argument. It will be retrying until it succeeds or until it tried max_tries times. If max_tries limit is reached and plugin still could not paste your content instead of pastebin's URI you'll get [paster error] in output message. Defaults to:3