避免影响正常对话中重复发送,现调整为针对指令触发

This commit is contained in:
2024-08-07 21:16:04 +08:00
committed by GitHub
parent a7a81cf462
commit 29bcb5cb39

View File

@@ -32,7 +32,7 @@ class dow_markdown(Plugin):
send_msg = e_context["context"]
try:
text = send_msg["content"]
if any(word in send_msg["content"] for word in ["", ".sd"]):
if any(word in send_msg["content"] for word in [".", ".sd"]):
receiver = send_msg.get("receiver")
itchat.send("我正在绘画中,可能需要多等待一会,请稍后...", toUserName=receiver)
logger.info("[WX] sendMsg={}, receiver={}".format(text, receiver))