Skip to content
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

update readme and disable unsupported event prompt #296

Merged
merged 2 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,6 @@ pip3 install requests flask
```bash
"channel": {
"type": "wechat_com",

"wechat_mp": {
"wechat_token": "YOUR TOKEN", # token值
"port": "8888", # 程序启动监听的端口
Expand All @@ -630,6 +629,10 @@ pip3 install requests flask

注意:需将服务器ip地址配置在 "企业可信IP" 内,否则用户将收不到主动推送的消息。

**参考文档**:

- [企业微信配置教程](https://www.wangpc.cc/software/wechat_com-chatgpt/)

### 通用配置

+ `clear_memory_commands`: 对话内指令,主动清空前文记忆,字符串数组可自定义指令别名。
Expand Down
3 changes: 2 additions & 1 deletion channel/wechat/wechat_com_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ def handle(self):
thread_pool.submit(self._do_send, msg.content, msg.source)
else:
reply = 'Can not handle this for now'
self.client.message.send_text(self.AppId, msg.source, reply)
# 未能处理的消息或菜单事件暂不做响应优化用户体验
# self.client.message.send_text(self.AppId, msg.source, reply)
return 'success'