Commit graph

688 commits

Author SHA1 Message Date
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
Dragory
c087654979 Add Logs plugin and GuildServerLogs class to communicate with it 2018-07-09 02:48:36 +03:00
Dragory
8234f67b0f Fix moment import in index.ts 2018-07-08 13:58:45 +03:00
Dragory
15b7da82e8 Add warn and mute commands. General code clean-up. 2018-07-08 13:57:27 +03:00
Dragory
28bb8165bc Update Knub to 9.4.5 2018-07-07 18:02:57 +03:00
Dragory
05919d901b Update Knub to 9.4.4 2018-07-07 17:27:36 +03:00
Dragory
2ac8984792 Add repository+model for mutes 2018-07-07 17:03:13 +03:00
Dragory
55215dc382 Change the first migration's date to the repo's creation date
This isn't necessary, but since the migration was modified when this repo was created,
it makes more sense to also have it dated at this time.
2018-07-07 17:01:44 +03:00
Dragory
e9fb76f76d Use a model class for mod actions 2018-07-07 17:00:50 +03:00
Dragory
47f124c7d6 Set moment default timezone to UTC
This requires switching to the moment-timezone package.
This is for consistensy with knexfile, which already sets the DB timezone to UTC.
2018-07-07 15:39:56 +03:00
Dragory
30f57dad24 Add npm script for watching changes. Clear obsolete dependencies. 2018-07-07 14:27:54 +03:00
Dragory
09d948a0df Fix wrong data type for action_type in migrations 2018-07-01 04:35:50 +03:00
Dragory
e70f1baa27 Various small fixes 2018-07-01 04:31:24 +03:00
Dragory
23c78f2c9c Initial commit in new repository 2018-07-01 03:35:51 +03:00