Commit graph

1863 commits

Author SHA1 Message Date
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
Miikka
e8c021eea6
fix(logs): escape mentions in edit/delete logs 2018-08-01 09:36:46 +03:00
Dragory
f77e70d4d2 fix: percentage signs in mod action reasons causing crashes
This is an issue with audit log reasons that are sent as an HTML header.
Eris tries to decodeURI these before sending them, which throws an error
if you have an invalid percent encoding in the reason (e.g. "100%").

See eris/issues/276 and RequestHandler.js#L74
2018-08-01 00:52:44 +03:00
Dragory
fb5c29a827 fix: load all guild members on start 2018-07-31 20:58:48 +03:00
Dragory
d3dbb9f479 fix(logs): use log type strings for include/exclude 2018-07-31 20:23:33 +03:00
Dragory
0d6bd097c8 Update Knub to 9.6.2 2018-07-31 19:37:18 +03:00
Dragory
229f27f2f3 Add Expunged case type 2018-07-31 19:37:07 +03:00
Dragory
b0c10b1fda Only load plugins that are defined in config 2018-07-31 19:00:17 +03:00
Dragory
808fa26b3d Ignore a temp file 2018-07-31 18:08:10 +03:00
Dragory
5359d0d5fe General fixes. Update Knub to 9.6.1. Add info and server commands. 2018-07-31 04:02:45 +03:00
Dragory
7ded84b924 Add spam plugin. Add clean commands. Update Knub to 9.6.0. 2018-07-31 02:42:45 +03:00
Dragory
ad6afdfac1 Add persist plugin 2018-07-30 23:35:44 +03:00
Dragory
e7734c558c Add censor plugin. Various other fixes/features. Update Knub to 9.4.13. 2018-07-30 01:44:03 +03:00
Dragory
0c806f32fd More work on logging and automatic mod actions 2018-07-29 23:30:24 +03:00
Dragory
724c30703f feat: add logging for most events 2018-07-29 18:46:49 +03:00
Dragory
6625e9ffb0 Update Knub to 9.4.11 2018-07-29 15:18:50 +03:00
Dragory
c0614f2470 Add ReactionRoles plugin 2018-07-29 15:18:26 +03:00
Dragory
92e5282b70 Change error message icon from a red cross to a warning triangle 2018-07-14 20:56:30 +03:00
Dragory
67e4e811a7 Add level command for checking your permission level with the bot 2018-07-14 20:56:08 +03:00
Dragory
6bf865af77 Add unban, forceban, and addcase commands 2018-07-14 20:55:39 +03:00
Dragory
b7f06c18d4 Add post plugin for posting messages as the bot 2018-07-14 20:54:48 +03:00
Dragory
737a436e67 Separate unmute and mute expiry logs 2018-07-13 00:11:51 +03:00
Dragory
4a88dc10a9 Add unmute command 2018-07-13 00:11:19 +03:00
Dragory
af7902e7de Add guild member join logging 2018-07-12 03:02:47 +03:00
Dragory
687d507325 Move default log messages to a .json file 2018-07-12 03:02:13 +03:00
Dragory
498ebe8939 Allow JSON TS imports, fix errors from enabling esModuleInterop (required for JSON imports) 2018-07-12 02:58:34 +03:00
Dragory
e6f296381e Rename ModActions to Cases 2018-07-12 02:53:26 +03:00
Dragory
62dfc80a0e Update TS. Add db-migrate npm script. 2018-07-12 02:49:15 +03:00
Dragory
b23a358631 Add kick and ban commands 2018-07-12 02:03:22 +03:00
Dragory
9256014907 Clarify mute function comments 2018-07-12 02:03:07 +03:00
Dragory
27a15ec81f Save mute reasons to audit log 2018-07-12 02:02:15 +03:00
Dragory
68e2e7dd9b ModActions: don't allow actions on self 2018-07-12 01:59:13 +03:00
Dragory
69224810cd Change prettier line width from 80 to 100, reformat files 2018-07-12 01:45:26 +03:00
Dragory
7e688ac899 Ignore desktop.ini 2018-07-12 01:44:45 +03:00
Dragory
e716f3aa7e Add humanize-duration to package.json
This was supposed to be in a previous commit already.
2018-07-12 01:43:37 +03:00
Dragory
5676cd427f ModActions: fix tryToMessageUser returning false if neither message type is enabled 2018-07-12 01:43:11 +03:00
Dragory
7401cdb88c ModActions: add helper function for checking if user can act on another 2018-07-12 01:42:18 +03:00
Dragory
22e2dbced1 Show how long mutes last in mute message/cmd response 2018-07-12 01:38:58 +03:00
Dragory
fcf682a039 ModActions: move user messaging to its own function 2018-07-12 01:20:20 +03:00
Dragory
38295e8aa7 Add logging to muting and mute expiring 2018-07-09 03:13:31 +03:00
Dragory
dff9ba15eb Fix DB timezone not being applied 2018-07-09 03:12:49 +03:00
Dragory
736b184646 Show message if mute cmd failed to message the muted user 2018-07-09 03:00:10 +03:00
Dragory
d938df75cd Use formatTemplateString in mute command 2018-07-09 02:59:37 +03:00
Dragory
82daf87fbf warn cmd: add logging; add verification if messaging fails. action log: do not auto-post automatic actions if set so in config 2018-07-09 02:51:34 +03:00
Dragory
74f643487c Update Knub. Add lodash.at for new util functions. 2018-07-09 02:49:51 +03:00