🐛 修复处理问题并优化代码

This commit is contained in:
HibiKier
2024-08-02 20:46:51 +08:00
parent fdb62f7226
commit 36047693aa
5 changed files with 48 additions and 14 deletions
@@ -265,6 +265,8 @@ async def _(bot: Bot, event: GroupDecreaseNoticeEvent | GroupMemberDecreaseEvent
f"踢出了 {group_name}({group_id})\n"
f"日期:{str(datetime.now()).split('.')[0]}",
)
if group:
await group.delete()
return
if str(event.user_id) == bot.self_id:
"""踢出Bot"""