mirror of
https://github.com/PC-Admin/matrix-moderation-tool.git
synced 2025-04-11 23:30:27 -04:00
update README.md
This commit is contained in:
parent
1598d73599
commit
fee582cef0
@ -24,12 +24,15 @@ This script also requires you to install the following PIP packages:
|
||||
pip3 install python-whois
|
||||
pip3 install requests
|
||||
pip3 install pyAesCrypt
|
||||
pip3 install matrix-nio
|
||||
```
|
||||
|
||||
|
||||
***
|
||||
## Upgrade user to 'server admin'
|
||||
|
||||
To use this moderation script you need an OAuth token of a "server admin" account. If you've just setup a Matrix server, you'll need to promote an account to server admin by altering your database.
|
||||
|
||||
https://github.com/matrix-org/synapse/tree/master/docs/admin_api
|
||||
|
||||
“So first connect to the correct db and then run the UPDATE users...”
|
||||
@ -44,11 +47,9 @@ UPDATE 1
|
||||
|
||||
synapse=#
|
||||
|
||||
‘-’ sign instead of ‘=’ means:
|
||||
Note: A ‘-’ sign instead of ‘=’ means you didn't type a complete SQL query yet!
|
||||
|
||||
It means you didn't type a complete SQL query yet.
|
||||
|
||||
You need a semicolon to terminate the command.
|
||||
(You need a semicolon (;) at the end to terminate the command.)
|
||||
|
||||
|
||||
***
|
||||
|
@ -487,7 +487,7 @@ def test_send_incident_reports():
|
||||
},
|
||||
f"@pedobear:perthchat.org": {
|
||||
"!dummyid5:matrix.org": ["csam", "loli", "jailbait"],
|
||||
"!dummyid6:matrix.org": ["csam", "hub_links"]
|
||||
"!dummyid6:matrix.org": ["csam", "hublinks"]
|
||||
},
|
||||
f"@randomcreep:perthchat.org": {
|
||||
"!dummyid7:matrix.org": ["csam", "jailbait"],
|
||||
@ -495,7 +495,7 @@ def test_send_incident_reports():
|
||||
},
|
||||
f"@fatweeb:grin.hu": {
|
||||
"!dummyid9:matrix.org": ["csam", "loli"],
|
||||
"!dummyid10:matrix.org": ["csam", "degen"]
|
||||
"!dummyid10:matrix.org": ["csam", "degen_porn"]
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user