From cce2af8f323877822887924b9b76355f61ba78ec Mon Sep 17 00:00:00 2001 From: c3b2a <62082214+c3b2a@users.noreply.github.com> Date: Wed, 20 Jan 2021 16:35:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=20vps=20=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=AE=89=E8=A3=85=20redis-server=20=E9=80=A0=E6=88=90=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keyword.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyword.py b/keyword.py index ef073a7..6ac2dd4 100644 --- a/keyword.py +++ b/keyword.py @@ -340,6 +340,8 @@ async def reply_set(context): @listener(incoming=True, ignore_edited=True) async def auto_reply(context): + if not redis_status(): + return global msg_rate, last_time chat_id = context.chat_id sender_id = context.sender_id