A Matrix bot that helps you shut down rooms
Project description
Matrix-Roomba
Roomba is a moderation bot for Matrix, designed to help manage rooms and enforce content policies. The bot can block/unblock rooms, shut down rooms, and notify users of shutdowns. It integrates with Synapse's administrative API and supports optional encryption through Pantalaimon.
Installation
pip install matrix-roomba
Create a configuration file in config.yaml
based on the config.dist.yaml provided in the repository.
At the very least, you need to provide the following configuration:
homeserver: "https://matrix.example.com"
user_id: "@roomba:example.com"
access_token: "YOUR_ACCESS_TOKEN"
moderation_room_id: "!moderation_room_id:example.com"
Ensure that the bot user is an admin on the homeserver, as it needs to be able to moderate rooms. Also add the user to the moderation room before starting the bot.
We recommend using pantalaimon as a proxy, because the bot itself does not support end-to-end encryption.
You can start the bot by running:
Usage
- Start the bot:
roomba
- Send a message to the moderation room to get a list of available commands:
!roomba
Commands
In the moderation room, send commands to manage rooms:
- Block a room: !roomba block <room_id>
- Unblock a room: !roomba unblock <room_id>
- Shutdown a room: !roomba shutdown <room_id> [--purge]
- For help: !roomba
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file matrix_roomba-0.1.2.tar.gz
.
File metadata
- Download URL: matrix_roomba-0.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08fe828730a2d4bf9ec1be693ed384885ceaa993e17d7f3303a156b7fe7a2d36 |
|
MD5 | ff64463c175271e1d7e592fc635708d7 |
|
BLAKE2b-256 | 87b3ce4a3bca2ff2461eb150e7c07c5ead6b11b09d7e3e44e1bcf3926ced4de5 |
File details
Details for the file matrix_roomba-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: matrix_roomba-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25102f4a37c30ea36c0e11f803a2ba23181889d3cb3b57d80e2370c88872475 |
|
MD5 | 5fcb85b94cd0ce719b23fadeb7207429 |
|
BLAKE2b-256 | dc7ebd5d0164b7116442cd31a3976455a64198350f29f8cce6a31f99ad479996 |