diff options
| -rw-r--r-- | bot/constants.py | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index 36b917734..93da6a906 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -683,10 +683,22 @@ class VideoPermission(metaclass=YAMLGetter):      default_permission_duration: int +class ThreadArchiveTimes(Enum): +    HOUR = 60 +    DAY = 1440 +    THREE_DAY = 4230 +    WEEK = 10080 + +  # Debug mode  DEBUG_MODE: bool = _CONFIG_YAML["debug"] == "true"  FILE_LOGS: bool = _CONFIG_YAML["file_logs"].lower() == "true" +if DEBUG_MODE: +    DEFAULT_THREAD_ARCHIVE_TIME = ThreadArchiveTimes.HOUR.value +else: +    DEFAULT_THREAD_ARCHIVE_TIME = ThreadArchiveTimes.WEEK.value +  # Paths  BOT_DIR = os.path.dirname(__file__)  PROJECT_ROOT = os.path.abspath(os.path.join(BOT_DIR, os.pardir))  |