瀏覽代碼

style: ruff

wuzilong 1 月之前
父節點
當前提交
60d8e4b274
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      pipeline_bot/pipeline/tasks/t02_biqi_kill20.py

+ 1 - 1
pipeline_bot/pipeline/tasks/t02_biqi_kill20.py

@@ -58,7 +58,7 @@ def _try_spawn(ctx: PipelineContext, af, last: dict) -> bool:
             and now - last.get("dlg_open_t", 0.0) < 10.0:
         smsg = str(dlg.get("sMsg", ""))
         act = next((a for a in _LINK_RE.findall(smsg)
-                    if a not in ("exit",)), None)
+                    if a != "exit"), None)
         if act is not None:
             body = json.dumps({"UserID": dlg.get("UserID", "999999999"),
                                "Act": f"@{act}",