- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| continuwuitybot | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| base-config.yaml | ||
| LICENSE | ||
| maubot.yaml | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
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- WhenMSCXXXXis found in a message, such asMSC1234, 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.!XXXor#XXX- When an issue or pull request is referenced in a message, such as!1234or#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 ascontinuwuity!1234orcontinuwuation/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.