3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-24 10:05:03 +00:00
Commit graph

153 commits

Author SHA1 Message Date
Dragory
76e727a43e automod: add any_message trigger 2021-04-02 17:57:04 +03:00
Dragory
3f77e598ac automod: add antiraid_level trigger 2021-04-02 17:53:16 +03:00
Dragory
aa906e4a2b automod: allow setting antiraid level to null/off with set_antiraid_level action 2021-04-02 17:52:50 +03:00
Dragory
1703f7b440 Add counter documentation/examples. Tweak counter triggers/actions in automod.
Rename change_counter automod action to add_to_counter,
add set_counter action, rename counter trigger to counter_trigger.
2021-04-02 17:44:43 +03:00
Nils
eb7ac72cd4 Enforce unified lock names by using functions to generate lock keys (#165) 2021-04-02 16:43:13 +03:00
Dragory
f8d393fad2 counters: move triggers to counters plugin; architectural tweaks 2021-04-02 16:36:45 +03:00
Dragory
76c3ccdb9a automod: fix {logMessage} variable in alert text 2021-02-15 00:25:20 +02:00
Dragory
7400af57c6 automod: use proper locks in removeRoles action 2021-02-14 17:16:00 +02:00
Dragory
30426960e7 automod: add triggers for mod actions 2021-02-14 16:58:02 +02:00
Dragory
2a3145e97b automod: add user/member to automod context for counters trigger 2021-02-13 21:34:47 +02:00
Nils
d9282643d8 Allow certain or all roles to be removed upon mute and readded on unmute (#140) 2021-02-13 20:04:40 +02:00
Dragory
c5c78c0e66 Remove debug console.log()s 2021-02-13 17:42:41 +02:00
Dragory
c78b2b7d8e Counters v0.9
Includes automod trigger/action. No user-facing commands yet.
2021-02-13 17:29:10 +02:00
Dragory
b9d561018b Fix crash if automod alert message fails to render 2020-12-17 03:44:42 +02:00
Dragory
d7993c7bcc Fix automod warns, kicks, and bans not using default contact methods 2020-12-03 16:55:53 +02:00
Dragory
aaabdeb978 Fix automod mutes not using default contact methods 2020-12-03 16:47:11 +02:00
Dragory
b681316471 Fix accidental early return in match_invites automod trigger 2020-11-09 20:43:46 +02:00
Dragory
08ec91be28 Fix config parsing issues caused by RoleAddedTrigger/RoleRemovedTrigger default config 2020-11-09 20:12:54 +02:00
Dragory
6f2d5a3784 Turn on strict TS compilation. Fix up and tweak types accordingly. 2020-11-09 20:03:57 +02:00
Dragory
72829cff54 Add sticker_spam automod trigger 2020-10-16 02:01:07 +03:00
Dragory
d0fe2dea04 Update to new Knub 30 beta. Code clean-up. 2020-10-01 01:43:38 +03:00
Dragory
a0bc37faed Fix several role race conditions 2020-09-30 01:08:42 +03:00
Dragory
46ade30efb 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
74d5fa1acc Add missing triggers to automod AvailableTriggers type 2020-09-15 02:12:17 +03:00
Dragory
aafb245b48 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
e521fa6ec3 automod: allow alert action to send messages >2000 chars long 2020-09-15 01:57:46 +03:00
Dragory
2c765c2250 automod: disable match_embeds by default 2020-09-15 01:07:59 +03:00
Dragory
52a9a980b8 automod: add strip_markdown option to match_words trigger 2020-09-15 01:07:28 +03:00
Dragory
91d891ae4a automod: make match_attachment_type case-insensitive 2020-09-15 01:02:28 +03:00
Dragory
64137bb4fa Improve error handling with mutes 2020-09-13 22:45:02 +03:00
Dragory
bd05095429 automod: add role_added and role_removed triggers 2020-08-10 02:22:39 +03:00
Dragory
a998d7e79c automod: change_nickname action can now also take simply a string value 2020-08-10 01:37:20 +03:00
Dragory
8e1d39f26b More work on permission utils and eager permission checks 2020-08-07 01:21:31 +03:00
Dragory
143d820742 automod: fix error when matching an unknown invite 2020-08-05 18:07:09 +03:00
Dragory
17e7746b5e 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
e14a93d752 Run user-supplied regexes in worker threads with a timeout 2020-08-05 01:15:36 +03:00
Dragory
ad1840df17 Fix up some automod context objects/types 2020-08-02 16:11:42 +03:00
Dragory
d5b8ee5583 automod: fix spam filters counting edits multiple times 2020-08-02 03:23:12 +03:00
Dragory
b696bf92fb automod: fix member_join trigger only_new matching 2020-07-30 22:49:34 +03:00
Dragory
d72a9defb6 automod: tweaks/fixes to spam detection 2020-07-30 22:47:33 +03:00
Dragory
0178131d21 automod: fix memberJoinSpam trigger returning duplicate contexts 2020-07-30 22:23:44 +03:00
Dragory
8090340c5f 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
4d5d381bc1 Debug++ 2020-07-30 20:15:35 +03:00
Dragory
a7d9bc63d7 automod: fix crash, improve user id detection 2020-07-30 13:45:42 +03:00
Dragory
b4ef037871 automod: fix possible error in config preprocessor 2020-07-30 13:28:46 +03:00
Dragory
93705f888b Fix up docs 2020-07-30 13:08:06 +03:00
Dragory
396c390d1f automod: add safeguard to config preprocessor 2020-07-30 11:05:03 +03:00
Dragory
a5db43f7f1 automod: fix logs showing duplicate users 2020-07-30 02:21:11 +03:00
Dragory
382462a310 automod: add cooldown support 2020-07-30 01:54:18 +03:00
Dragory
13e45f4c54 automod: add default configs for actions 2020-07-30 01:45:14 +03:00