feat✨: 添加B站转发解析功能

This commit is contained in:
HibiKier
2024-07-28 20:29:03 +08:00
parent aa7a8271f3
commit d4a49a47e5
7 changed files with 579 additions and 85 deletions
+4 -1
View File
@@ -78,7 +78,10 @@ async def _(matcher: Matcher, bot: Bot, session: EventSession, state: T_State):
if user_id:
command = state["_prefix"]["raw_command"]
if state.get("_alc_result"):
command = state["_alc_result"].source.command
try:
command = state["_alc_result"].source.command
except AttributeError:
pass
if command:
if _blmt.check(f"{user_id}__{command}"):
await BanConsole.ban(