NAME

Hubot::Robot

SYNOPSIS

# 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;

DESCRIPTION

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.

SEE ALSO

http://hubot.github.com/
https://github.com/github/hubot
hubot

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.