Commit graph

86 commits

Author SHA1 Message Date
Dragory
f3609aa8ab
Fix config parsing issues caused by RoleAddedTrigger/RoleRemovedTrigger default config 2020-11-09 20:12:54 +02:00
Dragory
629002b8d9
Turn on strict TS compilation. Fix up and tweak types accordingly. 2020-11-09 20:03:57 +02:00
Dragory
3aada93a80
Add sticker_spam automod trigger 2020-10-16 02:01:07 +03:00
Dragory
2f470dc37a
Update to new Knub 30 beta. Code clean-up. 2020-10-01 01:43:38 +03:00
Dragory
5d579446c5
Fix several role race conditions 2020-09-30 01:08:42 +03:00
Dragory
205f7721ea
automod: treat unknown users as bots
Primarily because of webhooks that don't have a real user
associated with them.
2020-09-17 22:17:39 +03:00
Dragory
025f2bec7f
Add missing triggers to automod AvailableTriggers type 2020-09-15 02:12:17 +03:00
Dragory
46400166ea
Disable match_embeds by default in other triggers as well. Add strip_markdown option to match_regex as well. 2020-09-15 02:02:24 +03:00
Dragory
d9140ff7a8
automod: allow alert action to send messages >2000 chars long 2020-09-15 01:57:46 +03:00
Dragory
47319e2177
automod: disable match_embeds by default 2020-09-15 01:07:59 +03:00
Dragory
cb5723db7c
automod: add strip_markdown option to match_words trigger 2020-09-15 01:07:28 +03:00
Dragory
a5c40a58bf
automod: make match_attachment_type case-insensitive 2020-09-15 01:02:28 +03:00
Dragory
61804d9e64
Improve error handling with mutes 2020-09-13 22:45:02 +03:00
Dragory
4c7a51f586
automod: add role_added and role_removed triggers 2020-08-10 02:22:39 +03:00
Dragory
bfa9cf55a7
automod: change_nickname action can now also take simply a string value 2020-08-10 01:37:20 +03:00
Dragory
6d4a7cdafd
More work on permission utils and eager permission checks 2020-08-07 01:21:31 +03:00
Dragory
ebdeabdc32
automod: fix error when matching an unknown invite 2020-08-05 18:07:09 +03:00
Dragory
925cf718e7
Replace transliteration package use with a custom normalizer function
Huge thanks to Nobody#6075 for doing most of the work for it!
2020-08-05 03:38:14 +03:00
Dragory
a7fa258f2a
Run user-supplied regexes in worker threads with a timeout 2020-08-05 01:15:36 +03:00
Dragory
2e9e47ac83
Fix up some automod context objects/types 2020-08-02 16:11:42 +03:00
Dragory
6caf7b1304
automod: fix spam filters counting edits multiple times 2020-08-02 03:23:12 +03:00
Dragory
e46d8e15da
automod: fix member_join trigger only_new matching 2020-07-30 22:49:34 +03:00
Dragory
80fb9d7b6b
automod: tweaks/fixes to spam detection 2020-07-30 22:47:33 +03:00
Dragory
4931c95872
automod: fix memberJoinSpam trigger returning duplicate contexts 2020-07-30 22:23:44 +03:00
Dragory
bd09c3bdf3
automod: ignore errors in 'clean' action
These are, in most cases, just that the message was already deleted
before we got to it or similar.
2020-07-30 20:41:00 +03:00
Dragory
def8e037ef
Debug++ 2020-07-30 20:15:35 +03:00
Dragory
2a08e70087
automod: fix crash, improve user id detection 2020-07-30 13:45:42 +03:00
Dragory
8082752cba
automod: fix possible error in config preprocessor 2020-07-30 13:28:46 +03:00
Dragory
7909c99a7f
Fix up docs 2020-07-30 13:08:06 +03:00
Dragory
18a1b4c31f
automod: add safeguard to config preprocessor 2020-07-30 11:05:03 +03:00
Dragory
b6b4154b2d
automod: fix logs showing duplicate users 2020-07-30 02:21:11 +03:00
Dragory
7fb7787583
automod: add cooldown support 2020-07-30 01:54:18 +03:00
Dragory
ae97a5dded
automod: add default configs for actions 2020-07-30 01:45:14 +03:00
Dragory
6324b9654b
Add antiraid commands 2020-07-30 00:58:34 +03:00
Dragory
c39d69dd5d
automod: ensure actions only apply once per user/member 2020-07-29 22:58:14 +03:00
Dragory
e55a1e3bd6
automod: don't generate summary if doing a silentClean 2020-07-29 22:54:26 +03:00
Dragory
3c90e5d4ab
automod: separate actions taken with comma + space instead of just comma 2020-07-29 22:43:33 +03:00
Dragory
63b77d1aaf
automod: create archives for matched spam 2020-07-29 22:42:31 +03:00
Dragory
b73c8668e3
automod: update match summaries for match_* triggers 2020-07-29 22:42:17 +03:00
Dragory
01e43e9b46
Add new Automod actions to availableActions 2020-07-28 23:28:42 +03:00
Dragory
a3f423a1d6
Don't run actions set to 'null' or 'false' 2020-07-28 21:53:01 +03:00
Dragory
07da88b7cb
More Automod updates 2020-07-28 21:51:58 +03:00
Dragory
86023877a2
Automod actions + ModActions public interface 2020-07-28 21:34:01 +03:00
Dragory
0f0728bc1c
Automod work vol 3 2020-07-27 22:19:34 +03:00
Dragory
0e9f65e0d5
Automod work vol 2 2020-07-27 21:51:03 +03:00
Dragory
f657b169df
Automod work 2020-07-27 20:42:10 +03:00
Dragory
951c27374f
Remove unported plugins from the repository 2020-07-06 01:53:58 +03:00
Dragory
d62a4e26ae
Knub 30 conversion base work; Work on Utility plugin Knub 30 conversion 2020-07-05 05:00:54 +03:00
Dragory
2aa48f2fe9
Merge master 2020-07-02 23:45:46 +03:00
Miikka
7e3f9ebd11 WIP 2020-06-30 17:48:18 +03:00