The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.