From 53fb3c279acfc50e679e5f1ef188f2eef87361f7 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 11 Aug 2021 20:42:13 +0800 Subject: [PATCH] =?UTF-8?q?forcesubscribe=20=E5=BB=B6=E9=95=BF=E6=8F=90?= =?UTF-8?q?=E9=86=92=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- forcesubscribe.py | 4 ++-- list.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/forcesubscribe.py b/forcesubscribe.py index 2e7925b..b0879ba 100644 --- a/forcesubscribe.py +++ b/forcesubscribe.py @@ -36,7 +36,7 @@ async def force_subscribe_join(event: ChatAction.Event): redis.expire(f'sub.chat_id.{event.chat_id}.{user.id}', 3600) except UserNotParticipantError: msg = await event.reply(f'[{user.first_name}](tg://user?id={user.id}) 您需要先加入频道 @{join_chat} 才能发言。') - await sleep(5) + await sleep(30) await msg.delete() except ChatAdminRequiredError: redis.delete(f"sub.chat_id.{event.chat_id}") @@ -73,7 +73,7 @@ async def force_subscribe_msg(context: Message): msg = await bot.send_message(context.chat_id, f'[{context.sender.first_name}](tg://user?id={context.sender_id}) ' f'您需要先加入频道 @{join_chat} 才能发言。') - await sleep(5) + await sleep(15) await msg.delete() except ValueError: pass diff --git a/list.json b/list.json index 1688117..6d266ee 100644 --- a/list.json +++ b/list.json @@ -612,7 +612,7 @@ }, { "name": "forcesubscribe", - "version": "1.05", + "version": "1.06", "section": "daily", "maintainer": "xtaodada", "size": "4.2 kb",