🎨 代码优化

This commit is contained in:
HibiKier
2024-08-15 00:14:09 +08:00
parent 3003cbf359
commit 7dfcd0983a
5 changed files with 26 additions and 4 deletions
@@ -71,6 +71,8 @@ async def _(matcher: Matcher, bot: Bot, session: EventSession, state: T_State):
extra = metadata.extra
if extra.get("plugin_type") == PluginType.HIDDEN:
return
else:
return
user_id = session.id1
group_id = session.id3 or session.id2
malicious_ban_time = Config.get_config("hook", "MALICIOUS_BAN_TIME")