Commit graph

37 commits

Author SHA1 Message Date
Dragory
82c65ca44e flag -> isSwitch as per knub-command-manager update (via knub) 2019-10-25 20:28:51 +03:00
Dragory
c7d24edc1d Fix several flag options expecting a value 2019-10-11 04:54:05 +03:00
Dragory
1681a45069 More documentation work 2019-08-22 02:58:32 +03:00
Dragory
ee6d622941 Auto-generate plugin docs (WIP) 2019-08-22 01:22:26 +03:00
Dragory
09464e56e3 Mutes: fix mutes/unmutes sometimes not applying/removing the role 2019-08-04 13:16:01 +03:00
Dragory
3e0498f96b Typing fixes; show last reload time in !about 2019-07-22 00:09:45 +03:00
Dragory
74c78f51ce Add io-ts config schemas to all guild plugins 2019-07-21 21:15:52 +03:00
Dragory
9e1240856a Mutes: only post 'all mutes posted' confirmation if there are more than a couple chunks 2019-07-11 12:38:50 +03:00
Dragory
d1a9cf6dc9 Mutes: don't crash if the loading message for !mutes was already deleted 2019-07-11 12:37:49 +03:00
Miikka
633da55ccf
Merge pull request #12 from DarkView/MutesListLoadingMessage
Implemented loading and finished message for the mutes command
2019-07-11 12:37:04 +03:00
Dragory
9b43101e5d Clarify default mute message wording 2019-06-22 18:50:09 +03:00
Nils Blömeke
59a7e51b63 Implemented loading and finished message 2019-06-18 23:43:01 +02:00
Dragory
d54897acdd 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
8a3097f63e Add a generic bot alert log type. Use this in several places. 2019-05-04 19:18:16 +03:00
Dragory
b8e0f26bf0 Fix missing pings/mentions in logs 2019-05-03 08:08:21 +03:00
Dragory
6f0e8bb76e Properly clear expired mutes even if the user has left the server 2019-05-02 18:41:34 +03:00
Dragory
6ed8aba35f Optimizations + debug logging 2019-05-02 18:34:15 +03:00
Dragory
5e8d098661 Temp fix for AFK channel move on mute 2019-05-02 08:51:48 +03:00
Dragory
bef5f75c87 Add some extra logging for failed role removals on unmute 2019-05-02 08:22:39 +03:00
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