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

103 commits

Author SHA1 Message Date
Dragory
a6bbf79c2d Add missing register/clear for expiring tempbans in !ban 2021-09-26 00:25:03 +03:00
Dragory
ba2a3a6edb Fix missing awaits 2021-09-26 00:23:09 +03:00
Dragory
076d69b989 Centralize periodic checks for mutes, tempbans, vcalerts, reminders, and scheduled posts
This should result in a significant performance improvement.
The new method is also more precise than the old one, allowing
the aforementioned checks to be performed with second-precision.
2021-09-25 21:34:07 +03:00
Dragory
81bb3cdd4d Disable case creating on manual kick
Discord has no "Kick" event. Instead, kicking a member just fires
a regular "Member Leave" event. Because of this, all manual kick
checks were being run every time a member leaves. Most importantly,
audit logs were being fetched on *every member leave*.

No.
2021-09-11 21:24:03 +03:00
Dragory
c1c7c092d9 Reformat all files with Prettier 2021-09-11 19:06:51 +03:00
Dragory
a5ecf849a4 Type fixes + use template safe values for renderTemplate() everywhere 2021-08-18 20:32:45 +03:00
Dragory
c7f739fd8f Type fixes + circular dependency fix 2021-08-18 20:01:06 +03:00
Dragory
44fbd020db Fix issues with circular dependencies between plugins 2021-08-18 19:33:22 +03:00
Dragory
dd78ac0090 Typed log functions + more 2021-08-18 01:51:42 +03:00
Dark
e6261c188e Add typings, comment magic numbers 2021-08-15 22:14:04 +02:00
Nils
60b70da11a Apply suggestions from code review
Co-authored-by: Almeida <almeidx@pm.me>
2021-08-15 22:02:18 +02:00
Dark
04cd1fc0e7 Implement temporary permission check public functions 2021-08-15 01:44:25 +02:00
almeidx
c932333971 upgrade discord.js 2021-08-04 20:45:42 +01:00
almeidx
9ffc91e5fa removed unnecessary string literal and simplified stuff 2021-07-29 10:08:55 +01:00
almeidx
c21e779c03 user.tag 2021-07-29 00:37:19 +01:00
almeidx
1597eb0517 removed unnecessary encodeURIComponent on reasons 2021-07-28 23:50:25 +01:00
almeidx
5523267678 use User#displayAvatarURL and dont encode reason 2021-07-28 23:40:20 +01:00
almeidx
d8dee5a8ad simplify 2021-07-28 23:30:52 +01:00
Dark
63d143a0ce DJS Update, Full Import Cleanup 2021-07-25 14:32:08 +02:00
Dark
de85ba37b9 More fixes, change rest of stripObjectToScalars to configAccessibleObj 2021-07-21 22:14:09 +02:00
Dark
6e2bd28691 Change DiscordRESTError to DiscordAPIError 2021-06-30 23:06:02 +02:00
Dark
bbf52a5951 Upgrade DJS, fix bugs 2021-06-30 18:43:42 +02:00
Dark
2977363dc0 Type fixes for djs 2021-06-30 04:56:56 +02:00
Dark
38a5e07be8 Formatting and initial ButtonRoles DB work 2021-06-08 02:23:30 +02:00
Dark
addb614023 Organise all imports, make Mutes depend on Logs 2021-06-06 23:51:32 +02:00
Dark
a07ca88c13 More fixes, waitForInteraction (replacement for waitForReaction) 2021-06-02 23:41:05 +02:00
Dark
1ee016e85e Bot now connects, lint fixes 2021-06-02 19:35:44 +02:00
Dark
c99e745f89 Finish preliminary rework, ready to test 2021-06-02 04:07:50 +02:00
Dark
3883b5b749 More rework progress, remove all eris imports 2021-06-01 02:05:55 +02:00
Dragory
8011885dc0 More initialization order fixes (vol 2) 2021-05-23 17:13:11 +03:00
Dragory
047174fbc4 Update to Knub30.0.0-beta.37 and Eris 0.15, first pass 2021-05-23 14:35:16 +03:00
Dragory
9e8629f337 Round time values in !massban 2021-05-22 15:01:08 +03:00
Dragory
157fc4c541 Show max wait time for massban queue in !massban 2021-05-22 13:58:19 +03:00
Dragory
bc6d8cea60 Add queue for massbans 2021-05-22 13:47:10 +03:00
Dragory
6ca231f40c Add total time taken to !massban result message 2021-05-22 13:32:27 +03:00
Dragory
fc6592d3f8 Add progress indicator to !massban. Tweak log/event ignoring to be more reliable for massbans. 2021-05-22 13:27:45 +03:00
Almeida
2a8aac34c7 refactor(*): remove unused exception variables (#193) 2021-05-06 21:23:47 +03:00
Almeida
22bb576b4b added can_unban permission for the unban command (#200) 2021-05-06 21:13:06 +03:00
Dragory
842c91b54d Add eager permission check in PostAlertOnMemberJoinEvt 2021-04-29 02:40:29 +03:00
Dragory
cb5454534a Emit 'unban' event from !unban 2021-04-29 02:22:39 +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
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
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
c20dd17722 Fix missing reason in log entries for manual kicks 2021-04-02 21:26:54 +03:00
Nils
a21e4fa0c3 Allow mute and unmute to be upgraded to their force variant (#174) 2021-04-02 16:53:09 +03:00
vcokltfre
50b37ab9dd chore: update wording of permission error for -mod (#172) 2021-04-02 16:43:52 +03:00