mjolnir/README.md

68 lines
1.5 KiB
Markdown
Raw Normal View History

2019-09-25 21:36:12 -04:00
# mjolnir
2019-09-25 22:13:20 -04:00
A moderation tool for Matrix.
## Features
TODO: Describe what all this means.
Phase 1:
2019-09-27 21:54:13 -04:00
* [x] Ban users
* [x] ACL servers
* [x] Update lists with new bans/ACLs
2019-09-25 22:13:20 -04:00
Phase 2:
* [x] Pantalaimon support
2019-10-03 00:24:11 -04:00
* [ ] No-op mode (for verifying behaviour)
2019-09-27 22:05:01 -04:00
* [ ] Redact messages on ban (optionally)
* [x] More useful spam in management room
* [ ] Command to import ACLs, etc from rooms
2019-09-25 22:13:20 -04:00
* [ ] Vet rooms on startup option
2019-09-27 22:10:03 -04:00
* [ ] Command to actually unban users (instead of leaving them stuck)
2019-09-27 22:05:01 -04:00
Phase 3:
* [ ] Synapse antispam module
2019-10-04 23:02:37 -04:00
* [ ] Room upgrade handling (both protected+list rooms)
2019-09-27 22:05:01 -04:00
* [ ] Support community-defined scopes? (ie: no hardcoded config)
* [ ] Riot hooks (independent of mjolnir?)
2019-09-25 22:13:20 -04:00
## Docker (preferred)
Mjolnir does not yet have its own image published.
```bash
git clone https://github.com/matrix-org/mjolnir.git
cd mjolnir
docker build -t mjolnir .
# Copy and edit the config. It is not recommended to change the data path.
mkdir -p /etc/mjolnir
cp config/default.yaml /etc/mjolnir/production.yaml
nano /etc/mjolnir/production.yaml
docker run --rm -it -v /etc/mjolnir:/data mjolnir
```
## Build it
This bot requires `yarn` and Node 10.
```bash
git clone https://github.com/matrix-org/mjolnir.git
cd mjolnir
yarn install
yarn build
# Copy and edit the config. It *is* recommended to change the data path.
cp config/default.yaml config/development.yaml
nano config/development.yaml
node lib/index.js
```
## Development
TODO. It's a TypeScript project with a linter.