David Teller
62b30b19d9
Replace shutdown_room API with DELETE /_synapse/admin/v1/rooms/<room_id> - Resolves #76 , closes #96
...
As per https://github.com/matrix-org/synapse/issues/9052 , shutdown_room is going away, to be replaced with DELETE /_synapse/admin/v1/rooms/<room_id>.
2021-08-17 12:54:24 +02:00
David Teller
2e22154870
Lint: Enabling 'strictNullChecks'
2021-07-22 08:40:29 +02:00
Travis Ralston
ff4cbc018f
Update matrix-bot-sdk and use request cleaning function
2021-07-01 15:11:27 -06:00
Neil Middleton
1c5c4bdc15
Remove errant log
2021-06-14 14:51:18 +01:00
Neil Middleton
531fd1379c
Make !mjolnir
not case sensitive
2021-06-14 14:43:50 +01:00
Travis Ralston
4751b093a5
Add Healthz support
2020-06-12 08:03:08 -06:00
Travis Ralston
013cac1365
Fix remaining getRoomAlias calls
2020-05-11 21:35:37 -06:00
Travis Ralston
232a6e2bb9
Use room aliases in permission errors too
2020-04-15 08:12:42 -06:00
Travis Ralston
f6a856ed4a
Resolve room aliases in messages
...
Fixes https://github.com/matrix-org/mjolnir/issues/47
2020-04-15 08:12:42 -06:00
Travis Ralston
ba7ea90fcb
Don't cause panic if the bot can't protect a ban list it didn't create
...
This only affects users with `protectAllJoinedRooms` enabled, as the bot can't possibly protect ban lists it did not create itself.
2020-02-18 17:06:27 -07:00
Travis Ralston
697ada6592
Make the bot less concerned about the format of commands
...
Fixes https://github.com/matrix-org/mjolnir/issues/39
2020-02-18 13:46:31 -07:00
Travis Ralston
dea6f8cbf1
Add a command to shut down a room
...
Fixes https://github.com/matrix-org/mjolnir/issues/21
2020-02-13 13:56:03 -07:00
Travis Ralston
223464227b
Move power level change notices to DEBUG
...
Fixes https://github.com/matrix-org/mjolnir/issues/32
2020-02-12 15:42:10 -07:00
Travis Ralston
9e5c87ac56
Add options to specify custom command prefixes
...
Fixes https://github.com/matrix-org/mjolnir/issues/29
2020-02-12 15:27:27 -07:00
Travis Ralston
c0365416fa
Add an option to protect all joined rooms
2020-01-21 15:19:03 -07:00
Travis Ralston
38e22ee155
Add commands to add/remove protected rooms on the fly
2020-01-21 13:46:15 -07:00
Travis Ralston
959162c4a3
Support automatically redacting users for certain ban reasons
2019-12-09 19:56:12 -07:00
Travis Ralston
f9e3c33935
Don't spam protection warnings, and ensure the user is redacted
...
We now always prioritize redaction over ban to ensure that the user gets removed from our rooms. This also means that the second image posted by a spammer is redacted after join.
This commit also improves the messaging a bit.
2019-12-09 19:15:51 -07:00
Travis Ralston
0879cd58a0
Actually fix ban command not always applying
...
Fixes https://github.com/matrix-org/mjolnir/issues/13
2019-12-04 19:28:28 -07:00
Travis Ralston
d5f260b982
Add a protection system with a "first message is an image" demo
2019-12-04 18:51:03 -07:00
Travis Ralston
07c9c04169
Detect UISI errors from pantalaimon in the management room
2019-11-14 15:59:01 -07:00
Travis Ralston
778f9c3459
Add a command to deactivate a user
2019-11-14 15:44:13 -07:00
Travis Ralston
9f84a65598
Don't apply bans globally when membership changes
2019-11-07 11:00:41 -07:00
Travis Ralston
82214c6cd8
Avoid spamming the management room with errors
...
The intervals are arbitrarily defined.
Fixes https://github.com/matrix-org/mjolnir/issues/10
2019-11-06 19:17:11 -07:00
Travis Ralston
84135c5ff5
Update log handling for debugging
2019-11-06 18:46:49 -07:00
Travis Ralston
5cd89d5c4e
Fix handling of state events
2019-10-18 16:38:19 +01:00
Travis Ralston
28f739a3a2
Ignore events sent by Mjolnir itself
2019-10-09 15:00:56 +01:00
Travis Ralston
cb20aefea3
Appease the linter
2019-10-09 11:29:01 +01:00
Travis Ralston
05ab8f60c6
Add watch and unwatch commands
2019-10-08 20:58:31 +01:00
Travis Ralston
1f449a9fc1
Move list watching into Mjolnir class
2019-10-08 18:25:57 +01:00
Travis Ralston
9056634124
Don't mention updates for rooms we don't protect
2019-10-08 17:58:37 +01:00
Travis Ralston
aecc6e4882
Support multiple ban lists
2019-10-08 17:57:03 +01:00
Travis Ralston
49fd0ca3f6
Consider startup logging as verbose
2019-10-04 21:38:50 -06:00
Travis Ralston
d4171a36a2
Check permissions when power levels change in protected rooms
2019-10-04 21:36:19 -06:00
Travis Ralston
7bd23a17d9
Optionally perform permission checks on startup
2019-10-04 21:22:51 -06:00
Travis Ralston
383985c732
Correctly represent state in !mjolnir command
2019-10-04 21:22:18 -06:00
Travis Ralston
5e081e2246
Add an option to sync rooms on startup
2019-10-04 21:02:37 -06:00
Travis Ralston
e69f0e6940
Improve/change logging to management room
2019-10-04 20:59:30 -06:00
Travis Ralston
82ae8d7062
Rewrite ping-based commands to avoid space parsing problems
2019-09-27 20:07:16 -06:00
Travis Ralston
063bac77e5
Add a sync command
2019-09-27 20:02:03 -06:00
Travis Ralston
834abc97dd
Apply user bans
2019-09-27 19:54:36 -06:00
Travis Ralston
02288a3885
Respond to pings too
2019-09-27 16:04:08 -06:00
Travis Ralston
39b59dbee1
Add commands for managing a personal ban list
2019-09-27 15:44:28 -06:00
Travis Ralston
41cc36e4c6
Refactor bot into its own class
2019-09-27 15:15:10 -06:00