From a9dca720b52d285e203389924b4cf38da588edf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=85=84?= Date: Sat, 9 Sep 2023 23:34:07 +0800 Subject: [PATCH] Docker --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3c94e7b..30fe90b 100755 --- a/main.py +++ b/main.py @@ -30,7 +30,7 @@ logger = telebot.logger.setLevel(logging.INFO) bots = {} # check if credentials exist, create if not -if not os.path.isfile("config.conf"): +if not os.path.isfile("config.conf") and "DOCKER_CONTAINER" not in os.environ: if os.path.isfile("credentials.py"): logging.info("转移旧的配置文件") try: