Bot::Backbone::Bot::Role::GroupChat - Provides some group related help tools
version 0.140590
service group_foo => ( service => 'GroupChat', chat => 'jabber_chat', group => 'foo', ); service group_bar => ( service => 'GroupChat', chat => 'jabber_chat', group => 'bar', ); ... for my $name ($bot->list_group_names) { say " * $name" } my $chat = $bot->find_group('foo'); $chat->send_message({ text => 'just to group foo' });
This role is automatically applied to any bot that has one or more Bot::Backbone::Service::GroupChat services.
Returns the names of all the groups that this bot has joined or intends on joining.
my $chat = $bot->find_group('foo');
Returns the Bot::Backbone::Service::GroupChat that entered the named group.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2014 by Qubling Software LLC.
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 Bot::Backbone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Backbone
CPAN shell
perl -MCPAN -e shell install Bot::Backbone
For more information on module installation, please visit the detailed CPAN module installation guide.