mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 11:26:47 +00:00
防止 vps 没有安装 redis-server 造成的报错
This commit is contained in:
parent
08e6537d4a
commit
cce2af8f32
@ -340,6 +340,8 @@ async def reply_set(context):
|
|||||||
|
|
||||||
@listener(incoming=True, ignore_edited=True)
|
@listener(incoming=True, ignore_edited=True)
|
||||||
async def auto_reply(context):
|
async def auto_reply(context):
|
||||||
|
if not redis_status():
|
||||||
|
return
|
||||||
global msg_rate, last_time
|
global msg_rate, last_time
|
||||||
chat_id = context.chat_id
|
chat_id = context.chat_id
|
||||||
sender_id = context.sender_id
|
sender_id = context.sender_id
|
||||||
|
Loading…
Reference in New Issue
Block a user