Skip to content

Keyword检测关键词触发对话#52

Open
Qzy327422 wants to merge 2 commits into
IntelliMarkets:mainfrom
Qzy327422:main
Open

Keyword检测关键词触发对话#52
Qzy327422 wants to merge 2 commits into
IntelliMarkets:mainfrom
Qzy327422:main

Conversation

@Qzy327422

Copy link
Copy Markdown

可以检测关键词触发对话,关键词在插件同目录下的config.json中
QQ_1774679761395

@houtengyiliawa houtengyiliawa self-requested a review April 4, 2026 13:36
@Welsonpeaches Welsonpeaches self-requested a review April 18, 2026 00:58
Comment thread Keyword/requirements.txt Outdated
@@ -0,0 +1 @@
# 本插件仅使用 Python 标准库,无需安装额外依赖 No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是什么😨

Comment thread Keyword/setup.py
return False
except Exception as e:
print(f"[插件错误] {e}")
error_msg = f"{bot_name}发生错误,不能回复你的消息了 ε(┬┬﹏┬┬)3"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

所以这里我建议你是不要这么写,你这么写的话有可能会让别人认为是我们主程序的问题,所以可以看看换个表达?

@Welsonpeaches Welsonpeaches self-requested a review May 10, 2026 04:42
Comment thread Keyword/setup.py
except Exception as e:
raise RuntimeError(f"读取配置文件错误:{str(e)}")

TRIGGER_KEYWORDS = load_keywords()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议还是别叫这个变量名

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants