cassius0924 / wechatter Goto Github PK
View Code? Open in Web Editor NEW基于 wechatbot-webhook 的微信机器人,支持 GPT 问答、热搜、天气预报、消息转发、小游戏、Webhook提醒等功能。
License: GNU General Public License v3.0
基于 wechatbot-webhook 的微信机器人,支持 GPT 问答、热搜、天气预报、消息转发、小游戏、Webhook提醒等功能。
License: GNU General Public License v3.0
私聊情况下,每次必须带命令 否则报”该消息不是命令类型“
群聊的情况下报”送消息失败,接收者为空:_send_msg1“
请问一下可以支持文言一心、千问那些模型吗
大佬,微信会封号吗
由于 Web 协议的微信的微信好友 ID 不固定,会在重新登录微信机器人时发生变化,好友名称也会随好友更改而变化,二者均不可作为好友的唯一标识符。
WeChatter v0.6.0 版本及以前版本使用好友 ID 作为好友标识符,存在好友数据丢失问题。
所以选择使用备注名作为好友的唯一标识符,解决微信好友 ID 变化导致的好友数据丢失问题。
在Admin配置的admin_list
中设置了两个管理员用来接收机器人状态变化通知,其中一个是 文件传输助手,但每次启动机器人时,只能成功发送给 文件传输助手,另一个则发送失败。(另一个接收转发消息是没问题的)
024-03-19 17:32:26 wechatter | 2024-03-19 09:32:26 | INFO | wechatter.app.routers.wechat:recv_wechat_msg:50 - 收到系统事件:system_event_login
2024-03-19 17:32:26 wechatter | 2024-03-19 09:32:26 | INFO | wechatter.sender.notifier:notify_logged_in:28 - 微信机器人启动成功
2024-03-19 18:38:27 wxbotwebhook | [2024-03-19T10:38:27.366] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 17:32:26 wechatter | 2024-03-19 09:32:26 | INFO | wechatter.sender.sender:mass_send_msg_to_admins:395 - 发送消息给管理员:['文件传输助手', 'IUIUI']
2024-03-19 18:38:27 wxbotwebhook | [2024-03-19T10:38:27.366] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 17:32:26 wechatter | 2024-03-19 09:32:26 | WARNING | wechatter.sender.sender:logging_wrapper:62 - 发送消息失败,部分消息发送成功: [{'to': '文件传输助手', 'isRoom': False, 'data': {'type': 'text', 'content': '微信机器人启动成功'}}, {'to': 'IUIUI', 'isRoom': False, 'data': {'type': 'text', 'content': '微信机器人启动成功'}}]
2024-03-19 18:38:27 wxbotwebhook | [2024-03-19T10:38:27.376] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
2024-03-19 17:32:26 wechatter | INFO: 172.18.0.2:50414 - "POST /receive_msg HTTP/1.1" 200 OK
2024-03-19 18:38:31 wxbotwebhook | [2024-03-19T10:38:31.495] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 17:32:26 wechatter | 2024-03-19 09:32:26 | INFO | wechatter.app.routers.wechat:add_message:160 - 消息 19 已添加到数据库
2024-03-19 18:38:31 wxbotwebhook | [2024-03-19T10:38:31.497] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 18:38:31 wxbotwebhook | [2024-03-19T10:38:31.511] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
2024-03-19 18:39:14 wxbotwebhook | [2024-03-19T10:39:14.854] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 18:39:14 wxbotwebhook | [2024-03-19T10:39:14.855] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 18:39:14 wxbotwebhook | [2024-03-19T10:39:14.863] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
2024-03-19 18:39:25 wxbotwebhook | [2024-03-19T10:39:25.354] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 18:39:25 wxbotwebhook | [2024-03-19T10:39:25.355] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 18:39:25 wxbotwebhook | [2024-03-19T10:39:25.366] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
2024-03-19 18:39:28 wxbotwebhook | [2024-03-19T10:39:28.956] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 18:39:28 wxbotwebhook | [2024-03-19T10:39:28.957] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 18:39:28 wxbotwebhook | [2024-03-19T10:39:28.966] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
2024-03-19 18:39:32 wxbotwebhook | [2024-03-19T10:39:32.806] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 18:39:32 wxbotwebhook | [2024-03-19T10:39:32.806] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 18:39:32 wxbotwebhook | [2024-03-19T10:39:32.818] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
2024-03-19 18:44:15 wxbotwebhook | [2024-03-19T10:44:15.382] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 18:44:15 wxbotwebhook | [2024-03-19T10:44:15.383] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 18:44:15 wxbotwebhook | [2024-03-19T10:44:15.402] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
2024-03-19 18:49:15 wxbotwebhook | [2024-03-19T10:49:15.501] [INFO] - Message: Message#Unknown[🗣Contact<send>]
2024-03-19 17:32:26 wechatter | 消息内容:微信机器人启动成功
2024-03-19 18:49:15 wxbotwebhook | [2024-03-19T10:49:15.503] [INFO] - starting fetching api: http://wechatter:4000/receive_msg
2024-03-19 18:49:15 wxbotwebhook | [2024-03-19T10:49:15.529] [ERROR] - HTTP error When trying to send Data to RecvdApi: 422
[wx-bot-webhook]
# 发送消息的端口,wxBotWebhook Docker 的端口(<<3001>>)
wx_webhook_port = 3001
# 接收消息的接口路径,RECV_MSG_API的路径(<</receive_msg>>)
wx_webhook_recv_api_path = /receive_msg
class Sender:
"""v2 版本 api 消息发送类"""
host = "http://localhost"
url = f"{host}:{config.wx_webhook_port}/webhook/msg/v2"
大佬您好,不知道能否实现对未回复消息的提醒,情景是如果检测到机器人账号在指定时间(例如十分钟)未回复消息,则自动转发消息给到指定用户。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.