Commit graph

144 commits

Author SHA1 Message Date
Dragory
01d73565b6 GuildSavedMessages: save messages in a more compact way 2018-11-24 14:53:55 +02:00
Dragory
cfc36be127 PostPlugin: don't require channel id for !edit 2018-11-24 14:34:05 +02:00
Dragory
2f341d97d8 GuildSavedMessages: only return non-deleted messages with find 2018-11-24 14:33:43 +02:00
Dragory
68fa25fbc4 GuildSavedMessages: remove guild_id override 2018-11-24 14:23:10 +02:00
Dragory
07b9ca843b Add missing is_permanent column to SavedMessage entity 2018-11-24 14:22:44 +02:00
Dragory
7dd452f7dd PostPlugin: save bot-posted messages 2018-11-24 14:19:47 +02:00
Dragory
b692c06b4f Some code reorganisation 2018-11-24 14:18:48 +02:00
Dragory
ba2ad8a528 Add MessageSaver plugin. Fix some buggy queries. 2018-11-24 14:01:06 +02:00
Dragory
50fb696d62 Merge branch 'master' of github.com:Dragory/ZeppelinBot 2018-10-26 06:41:53 +03:00
Dragory
f9c16263ae Switch from Knex to TypeORM. Update Knub. 2018-10-26 06:41:20 +03:00
Miikka
6720a9a70e
plugins.censor: make token filter case-insensitive 2018-10-05 20:22:19 +03:00
Dragory
e3ff4cef45 Rename SpamLogs to Archives. Tweak spam archive format. 2018-08-18 19:51:51 +03:00
Dragory
c9db802638 Improve spam detection in laggy circumstances 2018-08-18 19:21:39 +03:00
Dragory
86f7d268db fix(ModActions): don't create duplicate logs/cases for massbans; add more code comments 2018-08-18 13:34:57 +03:00
Dragory
622a8c3316 fix(censor): don't crash on invalid invites 2018-08-16 20:08:09 +03:00
Dragory
1f4b89700c Add massban command 2018-08-16 20:07:43 +03:00
Dragory
741118d877 !mutes fixes 2018-08-05 01:43:31 +03:00
Dragory
4a1a14be59 Add Tags plugin 2018-08-05 01:32:59 +03:00
Dragory
ff9db47c7a ModActions: don't re-message on overlapping mute, update old case instead; allow specifying an unmute time 2018-08-05 00:58:03 +03:00
Dragory
21c713255c LogServer: retry starting the web server if it fails due to EADDRINUSE (probably old instance of the bot still shutting down) 2018-08-05 00:45:35 +03:00
Dragory
c119424bd5 BotControl: add function to reload all global plugins, other tweaks 2018-08-05 00:43:58 +03:00
Dragory
7a372533ec Add case_id to mutes. Add !mutes command to list mutes. 2018-08-05 00:18:50 +03:00
Dragory
60c434999e Add !guild_reload to reload the current guild's config and plugins 2018-08-03 19:26:54 +03:00
Dragory
1b151fff24 Use fancier typings in ReactionRolesPlugin 2018-08-03 19:26:27 +03:00
Dragory
32856329b5 Don't crash when sending a log message that is too long 2018-08-03 19:26:06 +03:00
Dragory
be1c327093 Don't crash on Discord HTTP errors 2018-08-03 19:25:00 +03:00
Dragory
e585f63bec fix(censor): handle unknown invites gracefully 2018-08-03 19:24:40 +03:00
Dragory
aee14eac10 Merge branch 'master' of github.com:Dragory/ZeppelinBot 2018-08-03 19:12:21 +03:00
Miikka
01a1f4cbe3
fix(spam): recent actions being considered from all users, not just the author of the message being evaluated 2018-08-03 11:23:08 +03:00
Dragory
395ed8b58d Add zalgo filter in Censor plugin 2018-08-02 22:24:54 +03:00
Dragory
b3492090b8 Add default mod override for Spam plugin 2018-08-02 22:22:51 +03:00
Dragory
96a9a189e0 fix(spam): mute time being treated as seconds instead of minutes 2018-08-02 17:53:50 +03:00
Dragory
57184853b2 Change voice activity log format 2018-08-02 17:53:29 +03:00
Dragory
2520fac7d6 Allow browsing !search result pages 2018-08-02 04:00:42 +03:00
Dragory
e2261cd758 Crash on errors after all 2018-08-02 03:46:29 +03:00
Dragory
ebd25b13c2 Don't ask 2018-08-02 03:04:16 +03:00
Dragory
9769e38f17 Add optional 'expanded' param to !cases 2018-08-02 03:01:22 +03:00
Dragory
93c512c402 Cap !cases reason previews to 80-ish characters 2018-08-02 02:46:57 +03:00
Dragory
27d525c155 Add some safeguards against messages without an author 2018-08-02 02:28:52 +03:00
Dragory
c4523ddc32 Don't crash on error; just console.error it 2018-08-02 01:19:20 +03:00
Dragory
1ef88b61f7 Add colours for new case types, and tweak the old colours 2018-08-02 01:15:05 +03:00
Dragory
d55bf80158 Update MESSAGE_EDIT default format to be clearer 2018-08-02 00:55:02 +03:00
Dragory
a0f5114f62 Add softban command. Mod action fixes and tweaks. 2018-08-02 00:51:25 +03:00
Dragory
3e7aff5b1f Spam config: muteTime -> mute_time 2018-08-02 00:51:04 +03:00
Dragory
94c8e1cf43 Switch from node-mariasql to mysql2
Node-mariasql returned dates in an incorrect timezone, and the project
doesn't seem to be actively maintained. Switching to mysql2 fixes the issue.
2018-08-02 00:48:48 +03:00
Dragory
ef61eae2ec Add log url to automatic spam mute cases 2018-08-01 20:21:55 +03:00
Dragory
c27f60ba28 Change spam log expiry time from 7 days to 90 days 2018-08-01 20:17:30 +03:00
Dragory
464fb732f2 Move SPAM_DELETE log url to its own line 2018-08-01 20:10:48 +03:00
Dragory
16be52a5e7 feat: save deleted spam logs; server spam logs from a web server; update Knub to 9.6.4 2018-08-01 20:09:51 +03:00
Dragory
847ee11195 fix(spam): count duplicate mentions; only clean offending messages 2018-08-01 19:13:32 +03:00