Commit graph

119 commits

Author SHA1 Message Date
Dragory
0f724fc9bd Dashboard styling; don't allow login if you have no guild perms; allow logging out 2019-07-22 00:11:24 +03:00
Dragory
a517ca3906 Add temporary config auto-reload 2019-07-22 00:10:54 +03:00
Dragory
d80bc54635 GuildInfoSaver: also update owner id 2019-07-12 14:25:27 +03:00
Nils Blömeke
3174425083 Made it possible to list all alerts and delete them
Might be needed since you can potentially set reminders for far far in the future
2019-06-28 23:26:24 +02:00
Nils Blömeke
913120a1fe Fully functional LocatePlugin with alerts in DB and reminders 2019-06-26 01:04:11 +02:00
Dragory
b230a73a6f Dashboard work and related 2019-06-23 19:18:41 +03:00
Dragory
7bda2b1763 dashboard: auth fixes, guild listing, config editing 2019-06-23 03:40:53 +03:00
Dragory
2adc5af8d7 Dashboard work. Move configs to DB. Some script reorganization. Add nodemon configs. 2019-06-22 18:52:24 +03:00
Dragory
5a91d36953 Initial dashboard work (auth flow) 2019-05-26 00:13:42 +03: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
1aa549e391 Don't run migrations on start (must be run explicitly) 2019-05-25 21:23:09 +03:00
Dragory
4cb890de6b Add some extra comments 2019-05-07 19:54:16 +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
e18193c1a2 Add post scheduling. Add cleaner post_embed syntax. 2019-05-04 18:41:50 +03:00
Dragory
900f77aa14 Include message id in censored message logs 2019-05-04 01:46:27 +03:00
Dragory
e231faf51f Fix username change logging and saving. Re-enable migrations. 2019-05-03 23:31:38 +03:00
Dragory
c4a435ae72 Add message IDs to default message edit/delete logs 2019-05-03 16:42:14 +03:00
Miikka
1ca9abf73d
Reduce spacing in edit logs 2019-05-03 14:38:16 +03:00
Dragory
d31de8db11 Fix unknown users in logs in several places 2019-04-30 06:20:55 +03:00
Dragory
081c7d0ac3 Standardize how message summaries are generated in logs 2019-04-30 06:07:48 +03:00
Dragory
70591eec3b Show rich embeds in message deletions logs 2019-04-30 05:35:19 +03:00
Dragory
d30fbbbbaa 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
f6e487d073 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
b8077e59a4 Fix user's name not appearing in MEMBER_TIMED_UNMUTE log messages 2019-04-20 19:09:24 +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
c34532e348 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
434758b8ad Fix right click bans causing logs with the banned user's username missing 2019-04-14 13:26:29 +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
5eeb3d2536 Add timestamps to !cases 2019-04-13 02:27:52 +03:00
Dragory
45b06ece20 Logs: fix double member IDs in voice channel logs 2019-03-16 17:54:26 +02:00
Dragory
11558df665 Logs: add permission for whether a user is pinged in logs or not (mainly to not ping mods); templateFormatter: fix error when following a plain value variable with a function variable 2019-03-16 16:10:30 +02:00
Dragory
ba3af1cb63 Add templateFormatter; migrate from formatTemplateString to templateFormatter 2019-03-16 15:42:55 +02:00
Dragory
ea3fde49a6 Add user mention to message deletion log 2019-03-16 12:37:45 +02:00
Dragory
515c91d2c2 Logs: make default log message for censored messages clearer 2019-03-16 12:31:05 +02:00
Dragory
e755784483 Improve mentions in default log messages. Add !vcmove logging. Don't attempt to !vcmove to the same channel the user is already in. 2019-03-16 11:45:30 +02:00
Dragory
cabccf5bd3 Slowmode: add support for native slowmode 2019-03-16 11:26:50 +02:00
Dragory
ffafc765d8 ModActions: !cases without id now returns 5 most recent cases created by you, or the mod specified with --mod 2019-02-23 22:40:43 +02:00
Dragory
147dcc973d ModActions: add !cases cmd without user, tweak old !cases response message 2019-02-23 21:33:57 +02:00
Dragory
56a1f51f56 plugins.Logs: log multiple role changes in one properly 2019-02-23 21:20:35 +02:00
Dragory
6491c48289 Add reminders 2019-02-20 00:01:14 +02:00
Dragory
457d57fb8c Add SelfGrantableRoles 2019-02-19 00:02:46 +02:00
Dragory
30db4d58b4 spam: add support for non-message spam; add max_voice_move spam detection 2019-02-17 17:09:49 +02:00
Dragory
fa759d1f46 Allow using !update without a case number. Will update the mod's latest case instead. 2019-02-17 15:23:40 +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
e841f20ab0 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
f6f1c29fc1 Add user id and show recent cases in 'member joined with prior records' log entry 2019-01-15 04:15:22 +02:00
Dragory
429653c66d Add GuildArchives.getUrl for getting the archive entry URL 2019-01-15 04:03:04 +02:00
Dragory
a2b7038b71 GuildSavedMessages: don't ignore edits with the same content (since embeds, attachments, etc. can differ) 2019-01-15 03:59:26 +02:00
Dragory
bf25342122 Add 'joined with prior records' log entry 2019-01-13 18:10:48 +02:00