Hubot::Robot
version 0.2.8
# Hubot::Robot has a CLI. named `hubot` $ perldoc hubot # make sure `hubot-scripts.json` is exist in current working directory use JSON::XS; use Cwd 'cwd'; use Hubot::Robot; my $robot = Hubot::Robot->new({ adapter => 'shell', name => 'hubot' }); $robot->adapter->on( 'connected', sub { my $cwd = cwd(); my $scriptsFile = "$cwd/hubot-scripts.json"; if (-f $scriptsFile) { my $json = read_file($scriptsFile); my $scripts = decode_json($json); $robot->loadHubotScripts($scripts); } } ); $robot->run;
A customizable, kegerator-powered life embetterment robot.
The original hubot description is..
"This is a version of GitHub's Campfire bot, hubot. He's pretty cool."
this is hubot Perl port.
Hyungsuk Hong <hshong@perl.kr>
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.
To install Hubot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hubot
CPAN shell
perl -MCPAN -e shell install Hubot
For more information on module installation, please visit the detailed CPAN module installation guide.