NAME

Bot::BasicBot::Pluggable::Module::ReviewBoard - Review Board Basic Bot IRC plugin

VERSION

version 1.0.0

SYNOPSIS

use Bot::BasicBot::Pluggable;

my $bot = Bot::BasicBot::Pluggable->new(
    server => "chat.freenode.net",
    port   => "6667",
    channels => [qw( #rbbottest ) ],
    nick      => "rbbot",
    username  => "rbbot",
    name      => "RB Bot",
    charset => "utf-8",
);

my $rb = $bot->load('ReviewBoard');
$rb->set(rb_url => 'https://rb.example.com');
$rb->ua->ssl_opts( verify_hostname => 0 );

$bot->run();

DESCRIPTION

This BasicBot plugin allows to retrieve various information about submissions to Review Board http://www.reviewboard.org/.

METHODS

ua

Return the LWP::UserAgent object that will be used to connect with Review Board.

SETTINGS

user_rb_url

Review Board URL

user_input_regexp

The regexp that messages will be tested against, must include at least one named closure called "rb" that match the RB number. %RB_URL% will be replaced by the value from user_rb_url.

Default: rb (?:\#|\s)? (?<rb\d+) | %RB_URL%/r/(?<rb>\d+)>

user_field_not_set

This will replace the value when a field doesn't have a value in RB.

user_output_message

The formatted output message. Tags between two percent signs (e.g. %BRANCH%) will replaced with the data from RB. The following tags are available:

RB_URL

Review Board URL set in user_rb_url.

ID

Review Board's submission reference number.

SUBMITTER

Submitter's username.

GROUPS

Groups that the review request belongs to.

BRANCH

The branch of the review request.

BUGS_CLOSED

The Bugs section of the review request.

SUMMARY

The Summary section of the review request.

TIME_ADDED

The timestamp when the review request was first posted.

LAST_UPDATED

The timestamp of the last update to the review request.

REPOSITORY

The repository that the review request is against.

DESCRIPTION

The description of the review request.

PUBLIC

A boolean to state whether the review request is public or not.

PEOPLE

The people added to the review request.

TESTING_DONE

The Testing Done section of the review request.

SEE ALSO

AUTHOR

Daniel Lukasiak

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Daniel Lukasiak.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.