aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/constants.py7
-rw-r--r--config-default.yml3
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']