Added DmHelpTextKeywords to data/bot.yml

- Bot now sends dm help text ONLY if the message contains one of the keywords specified
  - If no keywords are specified, bot will reply to every DM (like before)
- Fixed several commands which used error color for success confirmation messages
This commit is contained in:
Kwoth
2021-09-16 22:51:58 +02:00
parent 81254ed5f6
commit a09be96200
7 changed files with 47 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
# DO NOT CHANGE
version: 1
version: 2
# Most commands, when executed, have a small colored line
# next to the response. The color depends whether the command
# is completed, errored or in progress (pending)
@@ -28,6 +28,15 @@ forwardToAllOwners: false
# Supports embeds. How it looks: https://puu.sh/B0BLV.png
dmHelpText: |-
{"description": "Type `%prefix%h` for help."}
# Only users who send a DM to the bot containing one of the specified words will get a DmHelpText response.
# Case insensitive.
# Leave empty to reply with DmHelpText to every DM.
dmHelpTextKeywords:
- help
- commands
- cmds
- module
- can you do
# This is the response for the .h command
helpText: |-
{