Commit Graph

501 Commits

Author SHA1 Message Date
Travis Ralston
7314df7379 Re-work invite settings to better support practical use cases 2020-03-05 15:29:30 -07: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
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
e424f03ef2 Support redacting an individual event 2020-02-16 14:00:40 -07:00
Travis Ralston
1a591b4dcf Revert "Disable ban list server for release"
This reverts commit 3e303219a6.
2020-02-13 23:06:12 -07:00
Travis Ralston
f0476ccc80 v0.1.12 2020-02-13 23:05:42 -07:00
Travis Ralston
3e303219a6 Disable ban list server for release 2020-02-13 23:04:57 -07:00
Travis Ralston
790d1f2ff0 Update matrix-bot-sdk 2020-02-13 14:23:10 -07:00
Travis Ralston
1cc4faccee Improve general documentation for the bot
Fixes https://github.com/matrix-org/mjolnir/issues/26
Fixes https://github.com/matrix-org/mjolnir/issues/23
2020-02-13 14:15:45 -07:00
Travis Ralston
f67029bcde Steal contributing guidelines from Synapse
Removing all the Synapse bits

Fixes https://github.com/matrix-org/mjolnir/issues/24
2020-02-13 14:01:42 -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
8e5f8c19af Move ban message to INFO
Fixes https://github.com/matrix-org/mjolnir/issues/19
2020-02-13 13:46:09 -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
Travis Ralston
f6b4376eeb
Merge pull request #34 from matrix-org/clokep/filter-user-directory
Add an API to filter user directory searches by MXID or display name.
2020-02-13 11:49:29 -07:00
Patrick Cloke
70f353fbba Add a flag for disabling checking of usernames for spam. 2020-02-13 13:08:09 -05:00
Patrick Cloke
92c6f3f36f Switch to using the user profile. 2020-02-13 10:31:00 -05: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
f7448564be Load a default config when a default can't be located
The config package will use default.yaml for us, but most deployments won't have set that up correctly so instead we offer sensible defaults in addition to the thing from config.
2020-02-12 15:38:52 -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
06c09ef944 Change ban list server default port 2020-02-12 15:11:29 -07:00
Travis Ralston
60083b49f4 Update matrix-bot-sdk package 2020-02-12 15:05:52 -07:00
Patrick Cloke
a6d483191e Update based on review comments from Synapse PR. 2020-02-12 12:57:34 -05:00
Patrick Cloke
95bb5a7e83 Add an API to filter user directory searches by MXID or display name. 2020-02-11 10:10:27 -05:00
Travis Ralston
5d8fea07fc
Merge pull request #31 from Randshot/fix-unban-command
Fix unban command
2020-02-03 17:42:41 +00:00
Randshot
bef99297f9
Remove scary text...
Signed-off-by: Randshot <randshot@norealm.xyz>
2020-02-03 17:37:27 +01:00
Travis Ralston
252e0c7af4
Merge pull request #30 from Randshot/synapse-antispam-ban-rooms
Add room rule check to invites
2020-02-03 15:14:21 +00:00
Randshot
03382ce70c
Fix unban command
Signed-off-by: Randshot <randshot@norealm.xyz>
2020-02-01 10:30:23 +01:00
Randshot
d1afb9811d
Add room rule check to invites
Signed-off-by: Randshot <randshot@norealm.xyz>
2020-02-01 10:09:54 +01:00
Travis Ralston
fa6a6547ee Add very basic subscription server for Synapse module 2020-01-25 20:34:15 -07:00
Travis Ralston
4e4a6e0b56 Add python virtualenv to gitignore 2020-01-25 14:26:15 -07:00
Travis Ralston
387c477bf0 v0.1.11 2020-01-23 12:02:48 -07:00
Travis Ralston
a7b38daae5 Do python right 2020-01-23 11:48:24 -07:00
Travis Ralston
3c985830f6
Fix config path 2020-01-22 08:29:36 -07:00
Travis Ralston
fbf82f8402 v0.1.10 2020-01-21 15:26:00 -07: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
97d02b3816 Add an option to only autojoin invites from bot managers 2020-01-21 13:53:02 -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
cebd0309cb v0.1.9 2019-12-14 09:38:44 -07:00
Travis Ralston
959162c4a3 Support automatically redacting users for certain ban reasons 2019-12-09 19:56:12 -07:00
Travis Ralston
6753e7f780 Allow the redact command to take globs 2019-12-09 19:43:41 -07:00
Travis Ralston
7de3744875 Respect no-op in more places 2019-12-09 19:20:47 -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