Hyungsuk Hong > Hubot-0.2.2 > Hubot::User

Download:
Hubot-0.2.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.2.2   Source   Latest Release: Hubot-0.2.7

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 ^

Hubot::Script::redisBrain

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.

syntax highlighting: