This module lets you manage subscriptions to pubsub nodes via simple
chat messages. Subscriptions are always added based on bare JID. The
include_body
flag is enabled so that a plain text body
version of events can be included, where supported.
"pubsub.example.com" "pubsub"
Component = {
modules_enabled "pubsub_text_interface",
}
The following commands are supported. Simply send a normal chat
message to the PubSub component where this module is enabled. When
subscribing or unsubscribing, be sure to replace node
with
the node you want to subscribe to or unsubscribe from.
help
- a help message, listing these commandslist
- list available nodessubscribe node
- subscribe to a nodeunsubscribe node
- unsubscribe from a nodelast node
- sends the last published item from the node
to youShould work with Prosody since 0.9, when mod_pubsub was introduced.
The last
command is available from Prosody 0.11.
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_pubsub_text_interface
For earlier versions see the documentation for installing 3rd party modules