Commit graph

18 commits

Author SHA1 Message Date
Dragory
1e2b68119c Fix member fetching in a few places 2019-05-02 08:21:11 +03:00
Dragory
608f17c532 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
f3e6c05c67 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
Dragory
fe88766f02 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
fdd9bd93c5 mute list: show whether the user has left the server or been banned; allow filtering by whether the user has left with --left 2019-04-13 03:17:09 +03:00
Dragory
05bf5b4f25 Allow filtering !mutes with --age 2019-04-13 02:39:36 +03:00
Dragory
50f5792bc5 Update to Knub 19.1.1 and update plugins accordingly 2019-04-13 01:44:18 +03:00
Dragory
9202a717e3 Mutes: add move_to_voice_channel option 2019-03-20 00:24:32 +02:00
Dragory
b7b42705f9 Add types for all plugin configs and permissions. Update code to work with Knub 18. 2019-03-04 21:44:04 +02:00
Dragory
0b0bb05eed 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
10d757f588 Add command to clear dangling active mutes 2019-01-13 16:54:31 +02:00
Dragory
f8e0768ee2 Mutes: possible fix for clear_banned_mutes 2019-01-12 15:03:15 +02:00
Dragory
e221584f92 Mutes: add better logging for clear_banned_mutes cmd 2019-01-12 14:56:47 +02:00
Dragory
6365ea4278 Mutes: clear active mute if the mute role is removed; add command for similar cleanup 2019-01-12 14:51:38 +02:00
Dragory
0eac1ab436 Mutes: clear mutes if the user is banned; add command for clearing mutes from banned users 2019-01-12 14:39:22 +02:00
Dragory
55b27674e6 Mutes: fix error in postMuteList 2019-01-12 14:32:40 +02:00
Dragory
b0cd8762f1 Update to Knub 14.0.0 and make changes to plugins accordingly 2019-01-03 06:15:28 +02:00
Dragory
2e30a3b9e7 Use actions/events for plugin interoperability. Move base case and mute functionality to their own plugins. 2018-11-25 17:04:26 +02:00