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

1669 commits

Author SHA1 Message Date
Dragory
a2dbf3d50e 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
1c8ba55e45 Add member to the Automod context for mod action triggers 2021-04-29 02:29:23 +03:00
Dragory
cb5454534a Emit 'unban' event from !unban 2021-04-29 02:22:39 +03:00
Dragory
c6237b200c Remove leftover console.log() 2021-04-29 02:15:06 +03:00
Dragory
85e8597234 Add missing role locks for unmutes 2021-04-29 01:41:02 +03:00
Dragory
a7cf96b30b Fix tNormalizedNullOptional formatting in schema view in docs 2021-04-29 01:12:52 +03:00
Nils
0fc7599733 Fix !where and !follow not pinging requestor (#191) 2021-04-29 01:01:11 +03:00
Dragory
21073ef147 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
34f408833d Fix user mention not working in Automod reply action 2021-04-29 00:56:56 +03:00
Dragory
45795a1c5f Add allowed_mentions option to Automod alert action 2021-04-29 00:50:25 +03:00
Dragory
39a3944b8c Add tAllowedMentions
Mirrors AllowedMentions type from Eris
2021-04-29 00:49:37 +03:00
Dragory
40acab8868 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
0a0646174c Small tweaks to set_slowmode Automod action 2021-04-28 23:26:43 +03:00
Nils
0715a5c927 Add automod action for setting slowmode (#167) 2021-04-28 23:18:23 +03:00
Nils
666e5f7448 Allow filtering !cases to certain types using switches (#168) 2021-04-28 22:51:09 +03:00
Nils
c2c3470994 Allow automod to issue tempbans (#189) 2021-04-28 22:42:54 +03:00
Dragory
cab20fa295 Merge branch 'master' of github.com:Dragory/ZeppelinBot 2021-04-28 22:40:02 +03:00
Dragory
826bcfdd50 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
66cf2296dc Add -update/-up argument to automatically update latest/chosen case with !clean (#173) 2021-04-28 22:15:16 +03:00
Shoaib Sajid
01480d584e Add !infractions as an alias for !cases (#177) 2021-04-28 22:08:37 +03:00
Nils
abc9da0e68 Allow Automod to distinguish whether mod actions are manual or automatic (#179) 2021-04-28 22:06:33 +03:00
Shoaib Sajid
a6740dfbfb Add !reminder as an alias for !remind (#181) 2021-04-28 22:04:01 +03:00
Usoka
67f6ddee16 Fix 0 not being accepted in SetCounterCmd (#186) 2021-04-28 22:03:26 +03:00
Shoaib Sajid
25ff030dac Fix typo in automod docs (#185) 2021-04-28 22:02:25 +03:00
Almeida
4ed4b38549 fix(SetCounterCmd): misleading messages (#188) 2021-04-28 21:59:56 +03:00
Dragory
a65c34dad0 Check !bansearch permissions before running search 2021-04-28 21:47:45 +03:00
Dragory
016189bf9b Optimize !search and !bansearch performance for non-regex searches 2021-04-28 21:44:15 +03:00
Dragory
0d872e5324 !ban: only run isBanned() if member is not found 2021-04-28 21:24:59 +03:00
Dragory
2386116c3c Optimize isBanned() and handle errors properly 2021-04-28 21:23:51 +03:00
Dragory
b09e7943b3 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
a05b1f7bb8 Attempt another fix for counter decay deadlocks 2021-04-14 00:19:39 +03:00
Dragory
fc35f690c3 Fix crash from passing an invalid regex source to TRegex validation function 2021-04-13 23:50:39 +03:00
Dragory
0ea736a10d Attempt to fix occasional deadlock in counter decays 2021-04-13 23:35:19 +03:00
Dragory
893aa50878 Fix handling of partial server responses in simpleDiscordAPIRequest() 2021-04-12 13:04:04 +03:00
Dragory
486f061356 Fix 1556909512501-MigrateUsernamesToNewHistoryTable migration stalling 2021-04-11 21:06:36 +03:00
Dragory
ef60fa4b0a AutoDelete: ignore error 10008 Unknown Message
These errors are generally from messages that were deleted either by
automod or another bot, so safe to ignore.
2021-04-11 16:16:44 +03:00
Dragory
ec0ac57f8b Add permission checks and alerts to AutoDelete 2021-04-11 14:20:10 +03:00
Dragory
984dd64214 Add permission checks and alerts to Automod 'reply' action 2021-04-11 14:13:25 +03:00
Dragory
08722ab643 Fix hasDiscordPermission() when checking against multiple permissions 2021-04-11 14:12:58 +03:00
Dragory
5b88ad5865 Fix error when using an unknown counter from Automod 2021-04-11 13:44:48 +03:00
Dragory
3abac506e0 Use new voice channel mentions in default voice logs 2021-04-10 23:42:39 +03:00
Dragory
d7901da409 verboseChannelMention: don't use # for voice channels 2021-04-10 23:42:24 +03:00
Dragory
e371c66fed Add allowed mentions back for reminders 2021-04-10 23:39:23 +03:00
Dragory
93d1c81685 Disable mentions by default 2021-04-10 23:37:55 +03:00
Dragory
d10adc5a3e Add dev command to check server eligibility 2021-04-10 23:36:21 +03:00
Dragory
97fa0c59b2 starboard: use default embed color by default instead of black 2021-04-10 16:30:03 +03:00
Dragory
b4972c6895 dashboard: improve mobile-friendliness 2021-04-10 14:03:42 +03:00
Dragory
7f19e7e49e dashboard: use cmd+s/cmd+f on mac 2021-04-10 13:38:51 +03:00
Dragory
f781a8c8d7 dashboard: allow ctrl+s and ctrl+f to work outside the config editor 2021-04-10 13:27:25 +03:00
Dragory
0f8a8234d1 dashboard: fix GuildConfigEditor not using TypeScript 2021-04-10 13:24:41 +03:00