Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamkray/maubot-invite
Maubot plugin for generating invite tokens via matrix-registration
https://github.com/williamkray/maubot-invite
Last synced: 3 months ago
JSON representation
Maubot plugin for generating invite tokens via matrix-registration
- Host: GitHub
- URL: https://github.com/williamkray/maubot-invite
- Owner: williamkray
- License: mit
- Created: 2020-12-08T19:14:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-06T21:44:51.000Z (about 2 years ago)
- Last Synced: 2024-07-14T12:37:36.836Z (4 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 19
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - williamkray/maubot-invite - Maubot plugin for generating invite tokens via matrix-registration (others)
README
this is a simple [maubot](https://github.com/maubot/maubot) plugin which interacts with a
[matrix-registration](https://github.com/zeratax/matrix-registration) deployment and generates invite tokens.NOTICE: this bot depends on Maubot engine and matrix-registration. it does not work with synapse's native registration
tokens. reasons you may still prefer this project:1. you already have set up maubot
2. you already have set up matrix-registration
3. this bot only requires administrative access to matrix-registration, whereas the ability to generate synapse
registration tokens would require the bot to be a server administratorif you would prefer to use native synapse registration tokens, please check out
[matrix-registration-bot](https://github.com/moan0s/matrix-registration-bot/), an unrelated but similar project which is
a standalone bot (no maubot engine).## usage
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