Hyungsuk Hong > Hubot-0.2.5 > Hubot::Adapter

Download:
Hubot-0.2.5.tar.gz

Dependencies

Annotate this POD

CPAN RT

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

NAME ^

Hubot::Adapter - specific interface to a chat source for robots.

VERSION ^

version 0.2.5

SYNOPSIS ^

    use Hubot::Robot;
    my $robot = Hubot::Robot->new({
        adapter => 'Shell',
        name    => 'hubot'
    });

    $robot->adapter->on('connected', sub {
        ## do something
    });

    ## Hubot::Adapter::XXX
    ## `ADAPTER` must implements `run` method
    sub run {
        my $self = shift;
        ## do something
        $self->emit('connected');
    }

DESCRIPTION ^

Adapters are the interface to the service you want your hubot to run on.

AVAILABLE ADAPTERS ^

BUILT IN

Shell
IRC
Campfire

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: