Hubot::Adapter - specific interface to a chat source for robots.
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'); }
Adapters are the interface to the service you want your hubot to run on.
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.