A maubot plugin that monitors a room to watch for bad / abusive language or behaviour and gives the room members and admins the tools to deal with it.
Code in main will change frequenty. This README is for now being used as a guideline for how I plan to lay out this bot.
The first line of defense is a list of watch words that trigger notification to a separate control channel
- If the word appears on any of the following lists it triggers a start:
- watchword
- scoldword
- kickword
- It now checks the message agains the contextlist to make sure we're not taking something out of context.
- If it's on the context list, no action is taken.
- If it is not a false positive it will take an Action [See Actions]
- notify admins in private admin channel
- scold the user with a random entry in 'scolds' as a reply to the message
- Subtract 1 from user's rep
- scold the user with a random entry in 'scolds' as a reply to the message
- Subtract 5 from user's rep
- scold the user with a random entry in 'scolds' as a reply to the message
- Subtract 10 from user's rep
- Trigger a 'Kick Action'
- Trigger a 'Kick Action'
- Trigger a 'Ban Action'
- User can rejoin room right away
- User is banned from room
- !addrep
user
- Any room member can only addrep once per user
- This will add up to 5 rep points.
- The maximum a rep value can be is defined in
rep-start
in maubot.yaml - !scold
user
- This will remove up to 1 rep point. A non-admin can only use this command 5 times per day.
- !invite
user
- Send an invite to
user
(@user:example.com)
- Send an invite to
- !redact
- If done as a reply to a message, will remove the message
- WARNING This cannot be undone
- !addrep
user
amount
- Adds
amount
rep points touser
- Adds
- !rep
user
rep
- manually adjust
user
'srep
- manually adjust
- !scold
user
amount
- Scold and remove
amount
rep points fromuser
- Scold and remove
- !kick
user
- !ban
user
- immediately kick and ban
user
- https://docs.mau.fi/python/latest/api/mautrix.client.api.html#mautrix.client.ClientAPI.ban_user
- immediately kick and ban
- !unban
user
rep
- Unban
user
and set rep torep
- https://docs.mau.fi/python/latest/api/mautrix.client.api.html#mautrix.client.ClientAPI.unban_user
- Unban
- Download
dev.beardedtek.scoldbot-v001.mbp
- Open Maubot Manager
- Click the
+
next to Plugins in the sidebar- Drag the .mbp to the upload area or click on the upload area and select .mbp file
- Click on
+
next to Instances- Fill out ID
- Select your bot's name in Primary User dropdown
- Select
dev.beardedtek.scoldbot
in Type dropdown - CLick Create
- Configure blacklist and quips in the newly displayed config file.
- Click Save