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

16 commits

Author SHA1 Message Date
Dragory
9109e9a2c3 Split BaseRepository into non-guild and guild
BaseRepository includes all the non-guild-specific functionality,
such as with() and getRelations().
BaseGuildRepository includes guild-specific functionality, such as
getInstance().
2019-05-25 21:25:34 +03:00
Dragory
c7fc789c1e Add a generic bot alert log type. Use this in several places. 2019-05-04 19:18:16 +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
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
b74a6d55d6 Fix error when creating a case with no noteDetails 2019-04-14 13:26:55 +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
289b425a25 Update to Knub 19.1.1 and update plugins accordingly 2019-04-13 01:44:18 +03:00
Dragory
1c77269643 Add types for all plugin configs and permissions. Update code to work with Knub 18. 2019-03-04 21:44:04 +02:00
Dragory
2cb68ff9c5 GuildActions: create overloads for known actions; refactor certain actions, using only 1 args object; mutes: move !mutes to the Mutes plugin, fix case number not showing in mute list, make mute list prettier 2019-02-15 05:07:28 +02:00
Dragory
0cc131b3ab Add special mention if a mod action was performed on behalf of another mod with the --mmod option 2019-02-08 20:25:35 +02:00
Dragory
799ac2d502 Add support for hiding cases with !hidecase 2019-01-13 17:56:25 +02:00
Dragory
1ddbb379c5 Allow making archives permanent. Make archives permanent when attached to a case. Add log file metadata dynamically when served (instead of in the body directly). Add missing index on archives.expires_at. 2019-01-13 17:29:26 +02:00
Dragory
12f309d412 Update to Knub 14.0.0 and make changes to plugins accordingly 2019-01-03 06:15:28 +02:00
Dragory
b5dd0f74bb cases: fix cases without a reason not being posted
The fact that cases *with* a reason were being posted was actually an
unintended side effect of createCaseNote also posting the case after
creating the note. Had the issue with the cases not being posted not
existed, new cases with a reason would've been posted twice. This commit
changes this so createCaseNote doesn't post the case when used from
createCase, and fixes the actual case posting at the end of createCase.
2019-01-03 04:30:16 +02:00
Dragory
d2fa2977e6 Fix !update and auto-updated mute cases 2018-12-22 14:05:06 +02:00
Dragory
1020747398 Use actions/events for plugin interoperability. Move base case and mute functionality to their own plugins. 2018-11-25 17:04:26 +02:00