3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00
Commit graph

435 commits

Author SHA1 Message Date
Dragory
8ded916d93 Add shard latency to !ping 2019-04-23 05:59:46 +03:00
Dragory
c4b75c446c Add sort options to !roles 2019-04-23 05:59:29 +03:00
Dragory
badb645703 Add !about command 2019-04-23 05:58:50 +03:00
Dragory
66e1cdee4b Log in console when we crash due to too many recent errors 2019-04-23 05:38:48 +03:00
Dragory
ddb6e58750 Tolerate some Discord API errors before crashing 2019-04-23 05:29:53 +03:00
Dragory
5c8f6cfacc Fix occasional error when resolving a user by username 2019-04-23 05:28:50 +03:00
Dragory
57a059ff17 Fix bans failing when fetching members on-demand 2019-04-21 18:57:32 +03:00
Dragory
48adaf3356 Support excluding users from being logged 2019-04-21 18:11:49 +03:00
Dragory
c94a1c2949 Fix occasional error when unknown roles are added or removed 2019-04-21 15:18:17 +03:00
Dragory
75db3fdd05 Update Eris 2019-04-20 21:02:09 +03:00
Dragory
7ee778c27d Sanitize values in errors thrown in resolvedUser, resolvedUserLoose, and resolvedMember custom argument types 2019-04-20 20:43:47 +03:00
Dragory
5039fdb82a Fix case preview in !cases when two or more of the first case notes have the same timestamp 2019-04-20 20:15:31 +03:00
Dragory
a410a4e994 Fix some argument type names 2019-04-20 19:55:35 +03:00
Dragory
325a540880 Don't load all members on startup
Should improve start times significantly
2019-04-20 19:54:55 +03:00
Dragory
8baed81e1d Do saved message clean-up globally, not per-guild
Possible fix for the DEADLOCK errors on the server, and should also be
more performant (though probably marginally).
2019-04-20 19:51:33 +03:00
Dragory
cb6bfaefe0 Make !slowmode 0 an alias for !slowmode disable 2019-04-20 19:33:39 +03:00
Dragory
b58b20fdc6 In !cases, use the username from the latest case if the user is not found 2019-04-20 19:32:20 +03:00
Dragory
0987125b35 Reduce retention period of saved messages from 1 week to 5 days
Step 1 of a multi-step change to reduce the retention period to 1-3 days
to save database space.
2019-04-20 19:24:36 +03:00
Dragory
3312c945bd Simplify import in Utility.ts 2019-04-20 19:23:11 +03:00
Dragory
3bbf31ea26 Support attachments in !update 2019-04-20 19:20:35 +03:00
Dragory
77b6ddb7ad When adding archive links to a case, make them all permanent, not just the first one 2019-04-20 19:13:40 +03:00
Dragory
57dad804b6 Fix user's name not appearing in MEMBER_TIMED_UNMUTE log messages 2019-04-20 19:09:24 +03:00
Dragory
785eeab691 Fix resolvedUser and resolvedUserLoose types 2019-04-20 19:05:48 +03:00
Dragory
ba7fbd87a7 Add custom argument types for deep-resolved users/members, use these in some places. Deprecate unknownUser (constant) and replace with instances of UnknownUser (class). 2019-04-20 19:03:30 +03:00
Dragory
4acf1b3ad4 Update Knub to 20.0.0 2019-04-20 19:02:06 +03:00
Dragory
9a206455dc Deprecate GuildActions. Fix double case posting when muting a user for message spam. Update to new mute/case style when muting a user for "other" spam.
GuildActions turned out to be a fairly pointless abstraction in the end.
It didn't really solve the problems it was meant to solve (that is,
reduce code spaghetti by having all inter-plugin calls go through a
single service, and allow easier ways to replace core plugins with
alternatives that share the same interface) any better than simply
using `this.getPlugin()` when needed, and introduced extra complexity
and made static analysis messier.
2019-04-20 17:36:28 +03:00
Dragory
b95da113b2 Fix error when fetching unknown user 2019-04-19 20:05:20 +03:00
Dragory
0619602fc9 Fix spam detection crash if a spam message is deleted before the spam filter applies 2019-04-19 12:26:17 +03:00
Dragory
353ce30e6b Fix user mentions not working for mod actions. Allow using plain username to target users with mod actions. Make error messages more consistent. 2019-04-19 12:25:25 +03:00
Dragory
5952ba13cb Merge branch 'master' of github.com:Dragory/ZeppelinBot 2019-04-18 08:46:03 +03:00
Dragory
4e5f87fb49 Work on better error messages for mod actions, allow muting users that are not on the server; WIP 2019-04-18 08:45:51 +03:00
Miikka
f01fbafb44 templateFormatter: fix unknown values showing up as "false" 2019-04-17 09:43:27 +03:00
Miikka
91a713b3aa Fix bot-maintained slowmodes not being applied 2019-04-15 14:11:58 +03:00
Miikka
2fda98db44 Fix slowmodes longer than 6h 2019-04-15 14:01:49 +03:00
Dragory
1f79ea7e90 Fix error when parsing a spam plugin mute time that is of type number 2019-04-14 20:12:00 +03:00
Dragory
ff5666a7fe Add safety net for unknown roles in guildMemberUpdate 2019-04-14 17:05:58 +03:00
Dragory
4e0bd46e0d Add safety net for attempts to create a duplicate case for a single kick audit log entry 2019-04-14 17:05:07 +03:00
Dragory
268d88e4c5 Include user notification result in warn/kick/ban cases 2019-04-14 17:03:29 +03:00
Dragory
c1d3ed6815 Allow overriding default unit for delay strings; use seconds by default for slowmodes 2019-04-14 14:05:16 +03:00
Dragory
7a9fc177f0 Update husky & lint-staged, tweak their scripts 2019-04-14 13:37:29 +03:00
Dragory
956c6dc116 Clear lint-staged test 2019-04-14 13:36:03 +03:00
Dragory
788a009ab7 lint-staged test 2 2019-04-14 13:35:25 +03:00
Dragory
9e35526fa8 lint-staged test 2019-04-14 13:34:23 +03:00
Dragory
d9fc59f892 Some fixes and cleanup 2019-04-14 13:30:48 +03:00
Dragory
b74a6d55d6 Fix error when creating a case with no noteDetails 2019-04-14 13:26:55 +03:00
Dragory
25b986740f Fix right click bans causing logs with the banned user's username missing 2019-04-14 13:26:29 +03:00
Dragory
2dd6fb22fe Notify user for spam detection mutes. Add notification status ('user notified in DMs' etc.) to the case. Log case updates. Add 'unmuted immediately' to the case for unmutes without a time. 2019-04-13 17:35:02 +03:00
Dragory
d5f3a74bdb evaluateTemplateVariable: require property to be a direct/own property of 'values', not from its prototype 2019-04-13 04:11:24 +03:00
Dragory
849c8c5500 Deprecate !cases expand/hidden in favor of options --expand/--hidden (-e/-h) 2019-04-13 04:01:37 +03:00
Dragory
4110239f30 Add !help 2019-04-13 03:54:36 +03:00