3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 13:51:51 +00:00
Commit graph

1734 commits

Author SHA1 Message Date
Dragory
b60a4ce8fc
Use longer lock timeout in !counters reset_all 2021-05-03 20:52:42 +03:00
Dragory
578542e54e
Show loading message for !counters reset_all 2021-05-03 20:51:16 +03:00
Dragory
3072f29044
Fix alias precedence for !counters list 2021-05-03 20:47:03 +03:00
Dragory
724abc89b9
Tweak counter reset logic (v2) 2021-05-03 20:45:33 +03:00
Dragory
7fc86d34e9
Tweak counter reset logic 2021-05-03 20:42:43 +03:00
Dragory
647c2eb85a
Fix !counters reset_all not also removing triggers 2021-05-03 20:41:39 +03:00
Dragory
ddaf3c98ee
Fix hide_case being required 2021-05-03 19:40:59 +03:00
Dragory
9bae5eaea7
Fix error when adding counter without triggers 2021-05-03 19:33:59 +03:00
Dragory
a568e86d78
Add commands to list and reset counters 2021-05-03 19:33:30 +03:00
Dragory
25a3350196
Add hide_case option to automod mod actions 2021-05-03 18:49:52 +03:00
Dragory
31d7748bf4
Fix changeCounterValue() not considering initial value
If a counter was initialized via the INSERT in changeCounterValue(),
its value would be set to the change value rather than the specified
initial value. For example, a counter with an initial value of 1000
and a change of 5 would get initialized to 5, not 1005.
2021-05-03 18:37:09 +03:00
Dragory
49577e37ca
Improve invite detection
Only a-z, 0-9, and - are now considered valid invite code characters.
Fix some unnecessary case sensitivity in the invite regexes.
2021-05-03 18:34:50 +03:00
Dragory
9c501a8098
Fix crash caused by missing !invite code parameter 2021-05-03 18:29:33 +03:00
Dragory
edd78fc9c6
Tweak RegExpRunner timeouts 2021-04-29 02:43:04 +03:00
Dragory
d3d51a5308
Add eager permission check in PostAlertOnMemberJoinEvt 2021-04-29 02:40:29 +03:00
Dragory
37fa9c736d
Remove extraneous reaction removal
The reaction would already be removed at the end of the function
2021-04-29 02:34:58 +03:00
Dragory
abdf54e134
Add member to the Automod context for mod action triggers 2021-04-29 02:29:23 +03:00
Dragory
72459e1d93
Emit 'unban' event from !unban 2021-04-29 02:22:39 +03:00
Dragory
ec81f63b5d
Remove leftover console.log() 2021-04-29 02:15:06 +03:00
Dragory
74cc58aeaa
Add missing role locks for unmutes 2021-04-29 01:41:02 +03:00
Dragory
0a8239996a
Fix tNormalizedNullOptional formatting in schema view in docs 2021-04-29 01:12:52 +03:00
Nils
b62a6685e0
Fix !where and !follow not pinging requestor (#191) 2021-04-29 01:01:11 +03:00
Dragory
b8c436731c
Change -allow-mentions to enable all mentions in !post
Previously -allow-mentions toggled mentioned roles mentionable and
then back after the message was posted. This was somewhat unintuitive.
2021-04-29 01:00:08 +03:00
Dragory
b541d5d087
Fix user mention not working in Automod reply action 2021-04-29 00:56:56 +03:00
Dragory
eb9cd080fd
Add allowed_mentions option to Automod alert action 2021-04-29 00:50:25 +03:00
Dragory
f2cf46e734
Add tAllowedMentions
Mirrors AllowedMentions type from Eris
2021-04-29 00:49:37 +03:00
Dragory
7e40308a8a
Add tNormalizedNullOrUndefined and tNormalizedNullOptional
tNormalizedNullOrUndefined:
io-ts type that accepts null and undefined and normalizes both to
undefined

tNormalizedNullOptional:
io-ts type that accepts the specified type or null/undefined.
if null/undefined, the value is normalized to undefined.
this allows creating optional config options that can be "removed" by
setting their value to null.
2021-04-29 00:46:24 +03:00
Dragory
73f0b7e30b
Small tweaks to set_slowmode Automod action 2021-04-28 23:26:43 +03:00
Nils
dd9c52bc43
Add automod action for setting slowmode (#167) 2021-04-28 23:18:23 +03:00
Nils
13f75c9b54
Allow filtering !cases to certain types using switches (#168) 2021-04-28 22:51:09 +03:00
Nils
903a2369c8
Allow automod to issue tempbans (#189) 2021-04-28 22:42:54 +03:00
Dragory
3d549b4e78
Merge branch 'master' of github.com:Dragory/ZeppelinBot 2021-04-28 22:40:02 +03:00
Dragory
45e81848a7
Add postInCaseLog option for mod action Automod actions; allow forcing case log even when log_automatic_actions is disabled 2021-04-28 22:39:49 +03:00
Nils
20b1c869cd
Add -update/-up argument to automatically update latest/chosen case with !clean (#173) 2021-04-28 22:15:16 +03:00
Shoaib Sajid
dfc1bf2ba0
Add !infractions as an alias for !cases (#177) 2021-04-28 22:08:37 +03:00
Nils
51db942d97
Allow Automod to distinguish whether mod actions are manual or automatic (#179) 2021-04-28 22:06:33 +03:00
Shoaib Sajid
90b6f4bc86
Add !reminder as an alias for !remind (#181) 2021-04-28 22:04:01 +03:00
Usoka
6b9131c353
Fix 0 not being accepted in SetCounterCmd (#186) 2021-04-28 22:03:26 +03:00
Shoaib Sajid
00f368d62b
Fix typo in automod docs (#185) 2021-04-28 22:02:25 +03:00
Almeida
4448659dc0
fix(SetCounterCmd): misleading messages (#188) 2021-04-28 21:59:56 +03:00
Dragory
aa43f05173
Check !bansearch permissions before running search 2021-04-28 21:47:45 +03:00
Dragory
ee615c1f0e
Optimize !search and !bansearch performance for non-regex searches 2021-04-28 21:44:15 +03:00
Dragory
c7c1b1f96f
!ban: only run isBanned() if member is not found 2021-04-28 21:24:59 +03:00
Dragory
d747ac3982
Optimize isBanned() and handle errors properly 2021-04-28 21:23:51 +03:00
Dragory
4410f20562
Improve invite detection
Several less common patterns are now detected:
discord.gg/anything/here/<code>
discord.com/invite/<code>/anything/here
discordapp.com/invite/<code>/anything/here

Potential invite URLs are also parsed as URLs to clean out any
shenanigans related to valid-but-uncommon URL formats.
2021-04-28 21:12:23 +03:00
Dragory
c26ab2977f
Attempt another fix for counter decay deadlocks 2021-04-14 00:19:39 +03:00
Dragory
a558af1038
Fix crash from passing an invalid regex source to TRegex validation function 2021-04-13 23:50:39 +03:00
Dragory
c03e7240b4
Attempt to fix occasional deadlock in counter decays 2021-04-13 23:35:19 +03:00
Dragory
825bcf973f
Fix handling of partial server responses in simpleDiscordAPIRequest() 2021-04-12 13:04:04 +03:00
Dragory
3eca503349
Fix 1556909512501-MigrateUsernamesToNewHistoryTable migration stalling 2021-04-11 21:06:36 +03:00