Hubot::User - storage object for hubot users.
my $user = Hubot::User->new( id => '1234', name => 'aanoaa', ); $user->{something} = 'awesome'; # if you using external storage for Hubot::Brain # this will stored.
Hubot::User is a storage object to chat rooms user's data.
Hubot::Robot has Hubot::User pool.
$robot->userForId($id, $data); # make new user with $data if not found $id
Hubot::Script::redisBrain save users data to hubot:storage. so Hubot::Robot can reuse it.
hubot:storage
$ redis-cli redis 127.0.0.1:6379> get hubot:storage ...
Hubot::Script::redisBrain
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.