mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update __init__.py
This commit is contained in:
parent
955a1f8a7f
commit
3a4378e4c6
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user