diff --git a/bsp_monitor/notify.py b/bsp_monitor/notify.py index ae3d85e..05f584a 100644 --- a/bsp_monitor/notify.py +++ b/bsp_monitor/notify.py @@ -10,18 +10,8 @@ import requests logger = logging.getLogger(__name__) -_HERMES_ENV = os.path.expanduser("~/.hermes/.env") -BOT_TOKEN = "" -CHAT_ID = "" - -if os.path.exists(_HERMES_ENV): - with open(_HERMES_ENV) as f: - for line in f: - line = line.strip() - if line.startswith("TELEGRAM_BOT_TOKEN="): - BOT_TOKEN = line.split("=", 1)[1] - elif line.startswith("TELEGRAM_ALLOWED_USERS="): - CHAT_ID = line.split("=", 1)[1] +BOT_TOKEN = "8742822093:AAGzD1vS7ru7ROhgcOjA-UyHb4R8Cfcqv3Q" +CHAT_ID = "580807463" # 持久化去重文件 _PUSHED_FILE = os.path.expanduser("~/.hermes/bsp_pushed.json")