[x] All is configurable (which things should be logged and where)
[x] BanTask -> ModerationTask
[x] Refactor to ModerationTask - now supports kicks, bans, warns & notifications
[x] Add Task argument type
[x] General refactoring
[x] Various improvements (inc. comments) to task- and moderation-related files
[x] Several iterations of misc. code clean up (DRY etc.)
Miscellaneous
I need to stop doing miscellaneous changes in random PRs, I know. But if I see an issue my immediate instinct is just to fix it there and then. :frowning:
[x] Fix NODE_ENV issue.
[x] Fix development-only commands in production.
[x] Fix some unnecessary duplication in constants files.
PR
services/tasks
- Persist task options/configuration!error
command, necessary for testingtasks/log
ban-words
service tomoderation
service - supports various different actions!add-trigger <action=warn|kick|ban|notify> <trigger>
- Add a trigger word/phrase!remove-trigger <trigger>
- Remove a trigger word/phrase!list-triggers
- List all triggers!enable-task <task-name>
- Enable a task!disable-task <task-name>
- Disable a task!task-info <task-name>
- Show in-depth information about a task!list-tasks
- Show all tasks and their status (enabled/disabled)!reset-tasks
- Reset all tasks to their default configurationsModerationTask
- now supports kicks, bans, warns & notificationsMiscellaneous
I need to stop doing miscellaneous changes in random PRs, I know. But if I see an issue my immediate instinct is just to fix it there and then. :frowning:
NODE_ENV
issue.trySend
message util.