Brad Fitzpatrick > DJabberd > DJabberd::Component::Example

Download:
DJabberd-0.83.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  0
View/Report Bugs
Source   Latest Release: DJabberd-0.85

NAME ^

DJabberd::Component::Example - An example DJabberd service component

SYNOPSIS ^

  <Plugin DJabberd::Plugin::Component>
     Subdomain example
     Class DJabberd::Component::Example
     Greeting Hello, world!
  </Plugin>

This class implements a very simple component that responds to all incoming messages with a predefined greeting and which returns a vCard for itself when one is requested. You can change the greeting returned using the optional Greeting configuration setting as above.

This example also exposes a node called "eliza" that allows you to talk to an Eliza chatbot.

syntax highlighting: