This is an experimental widget to be used in the Mjolnir moderation room.
Use at your own risk! If you break your bot and it is not an bug your issue will be closed. Using this currently is extremely dangerous!
Room: #mjolnir-widget:nordgedanken.dev
- Follow https://create-react-app.dev/docs/using-https-in-development for your os
- Run
npm start
Run npm run build
.
Something like this (room_id and https are required)
/addwidget https://localhost:3000?room_id=$matrix_room_id
A hosted widget is at https://moderation_widget.nordgedanken.dev/ you can add it via
/addwidget https://moderation_widget.nordgedanken.dev?room_id=$matrix_room_id
TODO:
- Allow the bot to send the state event. For this you need to make the bot PL 1
and allow sending
dev.nordgedanken.mjolnir_banlists
for PL1 users. - Send the following state event as the bot:
You can use /devtools
in element-web to send a custom state event.
Event Type: dev.nordgedanken.mjolnir_banlists
State Key: The user id of the bot
Content:
{
"banlists": {
"#matrix-org-coc-bl:matrix.org": "COC"
}
}
Edit it to fit your banlists.