mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-07 21:00:21 +08:00
Update __init__.py
This commit is contained in:
@@ -32,7 +32,6 @@ exists_data = {"private": {}, "group": {}}
|
|||||||
|
|
||||||
@friend_req.handle()
|
@friend_req.handle()
|
||||||
async def _(bot: Bot, event: FriendRequestEvent, state: dict):
|
async def _(bot: Bot, event: FriendRequestEvent, state: dict):
|
||||||
print(event)
|
|
||||||
global exists_data
|
global exists_data
|
||||||
if exists_data["private"].get(event.user_id):
|
if exists_data["private"].get(event.user_id):
|
||||||
if time.time() - exists_data["private"][event.user_id] < 60 * 5:
|
if time.time() - exists_data["private"][event.user_id] < 60 * 5:
|
||||||
|
|||||||
Reference in New Issue
Block a user