Andrew Sterling Hanenkamp > Bot-Backbone-0.112500 > Bot::Backbone::Service::GroupChat

Download:
Bot-Backbone-0.112500.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.112500   Source   Latest Release: Bot-Backbone-0.141180

NAME ^

Bot::Backbone::Service::GroupChat - A helper chat for performing group chats

VERSION ^

version 0.112500

SYNOPSIS ^

  service group_foo => (
      service => 'GroupChat',
      chat    => 'jabber_chat',
      group   => 'foo',
  );

DESCRIPTION ^

This is a chat consumer that provides chat services to a specific group on the consumed chat service.

ATTRIBUTES ^

group

This is the name of the group this chat will communicate with. It will not perform chats in any other group or directly.

nickname

This is the nickname to pass to the chat when joining the group. If not set, no special nickname will be requested.

METHODS ^

initialize

Joins the "group".

send_message

Sends a message to the "group".

receive_message

If the message belongs to the "group" this chat service works with, the consumers will be notified and the dispatcher run. Otherwise, the message will be ignored.

AUTHOR ^

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 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.

syntax highlighting: