This module makes it easier to write MUC bots by removing the requirement that the bot be online and joined to the room.

All the bot needs to do is send a message and this module handles the rest.


Example configuration in Prosody:

Component "" "muc"

modules_enabled = {
known_bots = { "" }
bots_get_messages = false
ignore_bot_errors = true

Sending messages

Simply send a stanza like this from your bot:

<message type="groupchat" to="">
  <body>Beep boop, I'm a bot!</body>
  <nick xmlns="">Botty</nick>

Use with mod_rest

Using mod_rest to interact with MUC suffers from the same need to join with an online resource, so this module helps with that as well!

curl \
    -d body="beep boop" \
    -d nick="Botty"


Works with Prosody 0.12 or later.


With the plugin installer in Prosody 0.12 you can use:

sudo prosodyctl install --server= mod_muc_bot

For earlier versions see the documentation for installing 3rd party modules