Commit Graph

60 Commits

Author SHA1 Message Date
David Teller
b60f503e2e FIXUP 2021-08-17 12:56:25 +02:00
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
46d099e8e0 Lint: Enabling 'noUnusedLocals' 2021-07-22 08:47:41 +02:00
David Teller
2e22154870 Lint: Enabling 'strictNullChecks' 2021-07-22 08:40:29 +02:00
David Teller
2a77509f9e Lint: Enabling 'noImplicitReturns' 2021-07-22 08:24:12 +02:00
Travis Ralston
ff4cbc018f Update matrix-bot-sdk and use request cleaning function 2021-07-01 15:11:27 -06:00
J. Ryan Stinnett
259cdd8c12 Improve force handling
This improves the force argument parsing to keep it from getting glued onto the
reason. It also adjusts tests for the new behaviour.
2021-02-05 17:03:36 +00:00
J. Ryan Stinnett
46192ac6f7 Add confirmation for wildcard bans
This adds a default enabled option to require confirmation for wildcard bans
(e.g. those containing `*` or `?`). Users will need to also add `--force` for
the commands to be accepted.
2021-02-05 16:09:11 +00:00
Travis Ralston
7ee66a03dd Trim command arguments too for accessory spaces 2020-05-11 21:36:53 -06:00
Travis Ralston
7f185eced3 Appease the linter 2020-04-15 09:22:03 -06:00
Travis Ralston
6195acb092 Appease the linter 2020-04-15 09:21:23 -06:00
Travis Ralston
a8d03ffea7 Add a kick command 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
6f80a17558 Improve redaction handling 2020-04-14 16:49:20 -06:00
Travis Ralston
f5763803d9 Add a command to resolve a room alias to a room ID 2020-02-21 09:58:22 -07:00
Travis Ralston
3dd4274b3b Add alias add/remove commands
Fixes https://github.com/matrix-org/mjolnir/issues/42
2020-02-20 13:30:48 -07:00
Travis Ralston
39903ee298 Don't explode if we fail to leave protected rooms when de-protecting 2020-02-19 15:52:41 -07:00
Travis Ralston
e424f03ef2 Support redacting an individual event 2020-02-16 14:00:40 -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
8465a1ed78 Specify a default ban reason
Fixes https://github.com/matrix-org/mjolnir/issues/20
2020-02-13 13:50:17 -07:00
Travis Ralston
90cc3d01b4 Add text next to protections emoji
Fixes https://github.com/matrix-org/mjolnir/issues/16
2020-02-13 13:48:10 -07:00
Travis Ralston
5b4c253002 Add a 'set powerlevel' command
Fixes https://github.com/matrix-org/mjolnir/issues/35
2020-02-13 13:43:30 -07:00
Travis Ralston
aee562455a Add commands for managing room aliases and the room directory 2020-02-13 12:40:44 -07:00
Randshot
bef99297f9
Remove scary text...
Signed-off-by: Randshot <randshot@norealm.xyz>
2020-02-03 17:37:27 +01:00
Randshot
03382ce70c
Fix unban command
Signed-off-by: Randshot <randshot@norealm.xyz>
2020-02-01 10:30:23 +01:00
Travis Ralston
7a015a9f06 Appease the linter 2020-01-21 15:25:17 -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
c1ea98f55d Fix logging for status command 2020-01-21 13:17:38 -07:00
Travis Ralston
959162c4a3 Support automatically redacting users for certain ban reasons 2019-12-09 19:56:12 -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
3be2da5c47 Automatically sync the ban lists after issuing a ban
Workaround for https://github.com/matrix-org/mjolnir/issues/13.

Fixes https://github.com/matrix-org/mjolnir/issues/13
2019-12-04 19:28:24 -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
4f8b55c45f Update matrix-bot-sdk 2019-12-04 18:46:00 -07:00
Travis Ralston
778f9c3459 Add a command to deactivate a user 2019-11-14 15:44:13 -07:00
Travis Ralston
417673aeef Test for ban reasons as well in autodetection 2019-11-13 21:46:20 -07:00
Travis Ralston
66a5775136 Make the [un]ban command smarter
Fixes https://github.com/matrix-org/mjolnir/issues/11
2019-11-13 21:38:19 -07:00
Travis Ralston
dd260091bb Add a command to set a default ban list 2019-11-13 20:34:45 -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
12a3d6255d Add a moderator's guide to Mjolnir
Fixes https://github.com/matrix-org/mjolnir/issues/6
2019-10-28 20:20:47 -06:00
Travis Ralston
354caa96c0 Appease the linter 2019-10-23 13:25:32 -06:00
Travis Ralston
5409f4916a Add a way to actually unban people 2019-10-10 12:37:42 +01:00
Travis Ralston
8fbd918431 Add a rule import command 2019-10-10 11:30:52 +01:00
Travis Ralston
78b73153b7 Add a redact command 2019-10-09 15:53:37 +01:00
Travis Ralston
7501e3123a Don't double report success for !mjolnir sync 2019-10-09 14:46:14 +01:00
Travis Ralston
cb20aefea3 Appease the linter 2019-10-09 11:29:01 +01:00
Travis Ralston
49468c5aab Fix command processing for recent refactorings 2019-10-08 21:06:54 +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