From 36a37523e76e72285c81098771357bb8715d95c0 Mon Sep 17 00:00:00 2001 From: SebastiaanZ <33516116+SebastiaanZ@users.noreply.github.com> Date: Fri, 18 Jan 2019 22:57:50 +0100 Subject: Adding redirection constants to contants.py and config-default.yml --- bot/constants.py | 7 +++++++ config-default.yml | 3 +++ 2 files changed, 10 insertions(+) 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'] -- cgit v1.2.3