mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-05-19 11:04:58 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c9306633b2 | |||
| c50d1cc99d |
@@ -13,10 +13,14 @@
|
||||
- [x] **语音识别:** 支持接收和处理语音消息,通过文字或语音回复
|
||||
- [x] **插件化:** 支持个性化功能插件,提供角色扮演、文字冒险游戏等预设插件
|
||||
|
||||
> 快速部署:
|
||||
> 目前支持微信和微信个人号部署,欢迎接入更多应用,参考[`Terminal`代码](https://github.com/zhayujie/chatgpt-on-wechat/blob/master/channel/terminal/terminal_channel.py)实现接收和发送消息逻辑即可接入。
|
||||
|
||||
|
||||
快速部署:
|
||||
>
|
||||
>[](https://railway.app/template/qApznZ?referralCode=RC3znh)
|
||||
|
||||
|
||||
# 更新日志
|
||||
|
||||
>**2023.04.05:** 支持微信个人号部署,兼容角色扮演等预设插件,[使用文档](https://github.com/zhayujie/chatgpt-on-wechat/blob/master/channel/wechatmp/README.md)。(contributed by [@JS00000](https://github.com/JS00000) in [#686](https://github.com/zhayujie/chatgpt-on-wechat/pull/686))
|
||||
|
||||
@@ -220,7 +220,7 @@ class PluginManager:
|
||||
|
||||
if not match:
|
||||
try:
|
||||
with open("./plugins/source.json","r") as f:
|
||||
with open("./plugins/source.json","r", encoding="utf-8") as f:
|
||||
source = json.load(f)
|
||||
if repo in source["repo"]:
|
||||
repo = source["repo"][repo]["url"]
|
||||
@@ -238,7 +238,7 @@ class PluginManager:
|
||||
if os.path.exists(os.path.join(dirname,"requirements.txt")):
|
||||
logger.info("detect requirements.txt,installing...")
|
||||
pkgmgr.install_requirements(os.path.join(dirname,"requirements.txt"))
|
||||
return True, "安装插件成功,请使用#scanp命令扫描插件或重启程序"
|
||||
return True, "安装插件成功,请使用 #scanp 命令扫描插件或重启程序"
|
||||
except Exception as e:
|
||||
logger.error("Failed to install plugin, {}".format(e))
|
||||
return False, "安装插件失败,"+str(e)
|
||||
|
||||
Reference in New Issue
Block a user