-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
简易支持插件,添加sdwebui(novelai画图), godcmd(管理员指令增强)插件,Banwords(敏感词过滤)插件 #442
Merged
Conversation
This file contains 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
Collaborator
lanvent
commented
Mar 12, 2023
•
edited
Loading
edited
- wechat channel的消息处理过程解耦。
- 支持插件功能,插件管理器目前只支持wechat channel。插件放置在plugins目录,里面存放有示例Hello插件,和插件管理器的配置文件(初次运行后生成)。
- 增加Godcmd插件,通过私聊口令验证可以进入管理员模式,管理员模式下目前可以实现启动暂停服务, 启用、禁用插件、重载插件配置、扫描是否有新插件、设置插件的优先级。初次运行后插件目录中会生成config.json,在其中可填写口令。
- 增加sdwebui插件, 它接管默认的画图命令,并调用本地部署的stable diffusion webui的api,支持自定义关键词规则。
- 增加Banwords插件,实现了简易的敏感词过滤的功能,可以选择无视敏感词消息或替换消息中的敏感词进行回复。
感谢提交PR, 很精彩的代码 👍🏻 不过引入插件化可能会带来一些理解成本的提升,可否先合并到分支https://github.com/zhayujie/chatgpt-on-wechat/tree/plugins 中,我先学习和测试一下再合并入主分支~ |
感谢review。 前几天我将本地的novel ai画图部署到bot上时,重写了bot的create_img最后能用但调用很混乱。所以就想不如将它做成插件,实现的版本也比较简单,具体做法就是:
|
lanvent
changed the title
简易支持插件,添加sdwebui(novelai画图), godcmd(管理员指令增强)插件
简易支持插件,添加sdwebui(novelai画图), godcmd(管理员指令增强)插件,Banwords(敏感词过滤)插件
Mar 14, 2023
Leslie0310
pushed a commit
to Leslie0310/chatgpt-on-wechat
that referenced
this pull request
Dec 8, 2024
简易支持插件,添加sdwebui(novelai画图), godcmd(管理员指令增强)插件,Banwords(敏感词过滤)插件
zcpisme
pushed a commit
to zcpisme/dify-on-wechat
that referenced
this pull request
Dec 28, 2024
简易支持插件,添加sdwebui(novelai画图), godcmd(管理员指令增强)插件,Banwords(敏感词过滤)插件
zcpisme
pushed a commit
to zcpisme/dify-on-wechat
that referenced
this pull request
Dec 28, 2024
简易支持插件,添加sdwebui(novelai画图), godcmd(管理员指令增强)插件,Banwords(敏感词过滤)插件
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.