添加一些权限目标

This commit is contained in:
2026-03-07 18:36:51 +08:00
parent f5b81319f8
commit c2f677911d
6 changed files with 55 additions and 34 deletions

View File

@ -70,8 +70,8 @@ async def _(msg: UniMsg, evt: Event, bot: Bot, target: DepLongTaskTarget):
await target.send_message(res)
return
env = TextHandlerEnvironment(is_trusted=False)
results = await runner.run_pipeline(res, istream or None, env)
env = TextHandlerEnvironment(is_trusted=False, event=evt)
results = await runner.run_pipeline(res, istream or None, evt, env)
# 检查是否有错误
for r in results: