Maubot plugin for generating invite tokens via matrix-registration
Go to file
William Kray 15840f89de
Merge pull request #2 from williamkray/message-customization
new config option for a custom bot response message, complete with va…
2021-06-01 10:49:32 -07:00
base-config.yaml new config option for a custom bot response message, complete with variables and everything! fixes #1 2021-06-01 10:48:02 -07:00
invite.py new config option for a custom bot response message, complete with variables and everything! fixes #1 2021-06-01 10:48:02 -07:00
LICENSE add readme and license 2020-12-08 11:28:34 -08:00
maubot.yaml new config option for a custom bot response message, complete with variables and everything! fixes #1 2021-06-01 10:48:02 -07:00
README.md fixes to json structure in api calls and date formatting, plus readme updates 2021-05-10 09:13:40 -07:00

this is a simple maubot plugin which interacts with a matrix-registration deployment and generates invite tokens.

modify the config to point to your matrix-registration url, include your admin secret to authenticate, and ensure that you're in the list of approved users.

please note that matrix-registration versions BELOW 0.9.0 have different API endpoints, expected date structures, json arguments, etc. and require the legacy_mr value in your config to be set to True! If your matrix-registration instance is 0.9.0 or greater, leave this as false.

once your bot is running, simply use the command

!invite generate

to generate a token with some generic text you can copy-paste when sharing it with your invitee!

to check the status of a specific token, use

!invite status MyTokenName

and similarly to list all tokens in the database, use

!invite list

to revoke a token, use

!invite revoke MyTokenName