mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-06 20:29:59 +08:00
feat✨: 添加B站转发解析功能
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user