NAME
Hubot::User - storage object for hubot users.
SYNOPSIS
my $user = Hubot::User->new(
id => '1234',
name => 'aanoaa',
);
$user->{something} = 'awesome'; # if you using external storage for Hubot::Brain
# this will stored.
DESCRIPTION
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.
$ redis-cli
redis 127.0.0.1:6379> get hubot:storage
...
SEE ALSO
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.