From b889108ca465c84a01c6fb23b3722ad903ea86ac Mon Sep 17 00:00:00 2001 From: dangmai Date: Thu, 3 Aug 2023 16:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=AE=9A=E6=97=B6=E4=B8=BB?= =?UTF-8?q?=E5=8A=A8=E5=8F=91=E9=80=81=E4=B8=AA=E6=80=A7=E5=8C=96=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 3 ++- chat.pkl | Bin 0 -> 316 bytes platforms/onebot_bot.py | 55 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 chat.pkl diff --git a/bot.py b/bot.py index e047c4e7..7afd7eec 100644 --- a/bot.py +++ b/bot.py @@ -23,9 +23,10 @@ if config.onebot: logger.info("检测到 Onebot 配置,将启动 Onebot 模式……") - from platforms.onebot_bot import start_task + from platforms.onebot_bot import start_task, daily_care bots.append(loop.create_task(start_task())) + bots.append(loop.create_task(daily_care())) if config.telegram: logger.info("检测到 telegram 配置,将启动 telegram bot 模式……") from platforms.telegram_bot import start_task diff --git a/chat.pkl b/chat.pkl new file mode 100644 index 0000000000000000000000000000000000000000..9e770997a3fc0390c86230974c9185639695f9f4 GIT binary patch literal 316 zcmZo*nQF+$00uq$iJAGyg&8F!1$wDvsd*(+dRSe-^yDd;jZ-vwI1BQNOX5o^3sR@_ zu;->07bm6zSv*h{OroGDvn;U$D8W*anVUMr>snxZN)LN+YED{wX37+=Xp^@19**MD zB&d3}w4%(^ycD2`rNya5U?t(xf{S}NOA?FHQ%ewfkZgRicfr#+E1phX^|HNZN)LBY zVtG8mIjE8>Y572pcr)~{6$5QaEt*mb^awM^;XpBtyv*e6yhNZYd)Qv?TK07B8w