custom maubot plugin specifically for the continuwuity rooms
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-28 23:39:03 +00:00
continuwuitybot Fix default config 2026-11-28 23:39:03 +00:00
.gitignore Initial commit 2025-04-22 03:58:40 +01:00
.pre-commit-config.yaml Add ruff to pre-commit 2026-09-05 18:52:55 +01:00
base-config.yaml Make bot automatically wastebin react auto responses 2025-11-19 10:26:37 +00:00
LICENSE Initial commit 2025-04-22 03:58:40 +01:00
maubot.yaml Add resolve command 2025-11-19 11:48:37 +00:00
pyproject.toml Add ruff config 2026-09-05 18:50:11 +01:00
README.md Add community configuration system 2026-11-27 17:26:53 +00:00
requirements.txt bump resolvematrix profile 2026-02-08 16:02:28 +00:00

Botty

A maubot plugin, specifically designed for the continuwuity community rooms. The user @bot:continuwuity.org runs this plugin.

Commands

  • !resolve <server_name> - Performs client-to-server & server-to-server resolution on a given server name, displaying some information about the server if successful, or presenting some error information if not.
  • !resolve-full-s2s <server_name> - Performs each step of server-to-server resolution on a given server name, displaying which routes work. Useful for finding out if any fallbacks are configured or broken.
  • !version <server_name> - Fetches the server's advertised version.

Auto-responses

  • MSCXXXX - When MSCXXXX is found in a message, such as MSC1234, the bot will look up the corresponding Matrix Spec Change (MSC) and respond with a link, title, and list of tags associated with the MSC. Multiple MSCs in a single message will respond in the same list.
  • !XXX or #XXX - When an issue or pull request is referenced in a message, such as !1234 or #5678, the bot will look up the corresponding issue or pull request on the default repository (configurable) and respond with a link, title, and tags associated with the issue or pull request. Multiple references in a single message will respond in the same list. The destination repo can be specified by prefixing the delimiter with the repo name, such as continuwuity!1234 or continuwuation/ruwuma!5678. Cross-forge references are not supported yet.
  • imgur.com / i.imgur.com - When an Imgur link is found in a message (and the room's canonical alias #continuwuity:continuwuity.org), a reply will be sent, informing the sender that the team cannot see Imgur posts.
  • When a user from a muted server joins, they will be informed that they are unable to speak.

Community Configuration

The plugin empowers separate communities to configure the bot to their rooms' own needs via a state event: org.continuwuity.bot.config. The body comprises the following:

Key Type Description
forge string The base URL to a forgejo instance. /api/v1 will be appended to this automatically.
default_org string The default organisation/user for issue/PR references. Defaults to the instance's default.
default_repo string The name of the default repository for issue/PR references. Defaults to the instance's default.
disabled bool If true, all plugin behaviour is disabled in the room.
disable_issues_and_prs bool If true, issue and PR references (#1234, !1234) will not be processed.
disable_mscs bool If true, MSC references (MSC1234) will not be processed.
disable_all_commands bool If true, all commands will be disabled (but auto-responses will still be allowed).

All values default to None, a.k.a. the most false-y value, which makes {} a valid (but useless outside the default config) configuration. Nulling or redacting the configuration will not disable the bot - set "disabled":true" to do that.

For example, to use the plugin in an external community with a Codeberg repository, one might use the following config:

{
    "forge": "https://codeberg.org",
    "default_org": "timedout",
    "default_repo": "resolvematrix"
}

Then, #1 and !1 will fetch https://codeberg.org/timedout/resolvematrix/issues/1, instead of the instance default (which would be https://forgejo.ellis.link/continuwuation/continuwuity/issues/1 if not configured in maubot either).

Tip

The plugin does not itself provide a way to join rooms - administrators may wish to use something like williamkray/maubot-join to control which rooms the bot will join and leave.

Questions etc

Ask in #offtopic:continuwuity.org.