Keyword检测关键词触发对话#52
Open
Qzy327422 wants to merge 2 commits into
Open
Conversation
Welsonpeaches
requested changes
Apr 18, 2026
| @@ -0,0 +1 @@ | |||
| # 本插件仅使用 Python 标准库,无需安装额外依赖 No newline at end of file | |||
| return False | ||
| except Exception as e: | ||
| print(f"[插件错误] {e}") | ||
| error_msg = f"{bot_name}发生错误,不能回复你的消息了 ε(┬┬﹏┬┬)3" |
Collaborator
There was a problem hiding this comment.
所以这里我建议你是不要这么写,你这么写的话有可能会让别人认为是我们主程序的问题,所以可以看看换个表达?
Welsonpeaches
requested changes
May 10, 2026
| except Exception as e: | ||
| raise RuntimeError(f"读取配置文件错误:{str(e)}") | ||
|
|
||
| TRIGGER_KEYWORDS = load_keywords() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
可以检测关键词触发对话,关键词在插件同目录下的config.json中
