diff options
| author | 2019-01-18 22:57:50 +0100 | |
|---|---|---|
| committer | 2019-01-18 22:57:50 +0100 | |
| commit | 36a37523e76e72285c81098771357bb8715d95c0 (patch) | |
| tree | c0b83017b5f3d4d5eff16407d83fed3303e87df7 | |
| parent | Redirecting output of help of regular users to bot-commands (diff) | |
Adding redirection constants to contants.py and config-default.yml
| -rw-r--r-- | bot/constants.py | 7 | ||||
| -rw-r--r-- | config-default.yml | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index 61f62b09c..53b6092ee 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -481,6 +481,13 @@ class Free(metaclass=YAMLGetter): cooldown_per: float +class RedirectOutput(metaclass=YAMLGetter): + section = 'redirect_output' + + delete_invocation: bool + delete_delay: int + + # Debug mode DEBUG_MODE = True if 'local' in os.environ.get("SITE_URL", "local") else False diff --git a/config-default.yml b/config-default.yml index 5938ae533..38e6ca86f 100644 --- a/config-default.yml +++ b/config-default.yml @@ -347,6 +347,9 @@ free: cooldown_rate: 1 cooldown_per: 60.0 +redirect_output: + delete_invocation: true + delete_delay: 15 config: required_keys: ['bot.token'] |