AnyEvent::Campfire::Client
version 0.0.2
use AnyEvent::Campfire::Client; my $client = AnyEvent::Campfire::Client->new( token => 'xxxx', rooms => '1234', account => 'p5-hubot', ); $client->on( 'join', sub { my ($e, $room_id) = @_; # $e is event emitter. please ignore it. $client->speak($room_id, "hi"); } ); $client->on( 'message', sub { my ($e, $data) = @_; # ... } ); ## want to exit? $client->exit;
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 AnyEvent::Campfire::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Campfire::Client
CPAN shell
perl -MCPAN -e shell install AnyEvent::Campfire::Client
For more information on module installation, please visit the detailed CPAN module installation guide.