NAME
Hubot::Response
VERSION
version 0.2.8
SYNOPSIS
## generally Hubot::Response used to Hubot::Script::* callback.
## assume this is a callback subroutine.
$robot->hear(
qr/echo (.+)/i,
sub {
my $res = shift;
$res->reply($res->match->[0]); # aanoaa> echo 123
# hubot> aanoaa: 123
}
);
DESCRIPTION
Interface between Hubot::Script::*
callback and Hubot::Adapter::*
AUTHOR
Hyungsuk Hong <hshong@perl.kr>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Hyungsuk Hong.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.