-
Notifications
You must be signed in to change notification settings - Fork 121
Description
$ nanobot gateway
🐈 Starting nanobot gateway on port 18790...
2026-02-11 09:38:24.324 | INFO | nanobot.channels.manager:_init_channels:141 - QQ channel enabled
✓ Channels enabled: qq
✓ Heartbeat: every 30m
2026-02-11 09:38:24.338 | INFO | nanobot.cron.service:start:154 - Cron service started with 0 jobs
2026-02-11 09:38:24.340 | INFO | nanobot.heartbeat.service:start:81 - Heartbeat started (every 1800s)
2026-02-11 09:38:24.341 | INFO | nanobot.agent.loop:run:113 - Agent loop started
2026-02-11 09:38:24.341 | INFO | nanobot.channels.manager:start_all:164 - Starting qq channel...
2026-02-11 09:38:24.342 | INFO | nanobot.channels.manager:_dispatch_outbound:192 - Outbound dispatcher started
2026-02-11 09:38:24.345 | INFO | nanobot.channels.qq:start:75 - QQ bot started (C2C private message)
[INFO] (client.py:162)_bot_login [botpy] 登录机器人账号中...
[INFO] (robot.py:65)update_access_token [botpy] access_token expires_in 756
[INFO] (client.py:181)_bot_init [botpy] 程序启动...
[INFO] (connection.py:60)multi_run [botpy] 最大并发连接数: 1, 启动会话数: 1
[INFO] (client.py:242)bot_connect [botpy] 会话启动中...
[INFO] (gateway.py:115)ws_connect [botpy] 启动中...
[INFO] (gateway.py:142)ws_identify [botpy] 鉴权中...
[INFO] (gateway.py:85)on_message [botpy] 机器人「clawbot-qq-测试中」启动成功!
[INFO] (gateway.py:223)_send_heart [botpy] 心跳维持启动...
2026-02-11 09:38:25.715 | INFO | nanobot.channels.qq:on_ready:37 - QQ bot ready: clawbot-qq-测试中
2026-02-11 09:38:46.154 | INFO | nanobot.agent.loop:_process_message:160 - Processing message from qq:C3E64B75DCBC7DA7ABE5B7B73B3B6F6B: 你好,你是谁?
2026-02-11 09:38:53.300 | INFO | nanobot.agent.loop:_process_message:238 - Response to qq:C3E64B75DCBC7DA7ABE5B7B73B3B6F6B: 你好!我是 nanobot 🐈,一个轻量级 AI 助手。
我可以帮你:
- 📁 读写和编辑文件
- 🖥️ 运行命令
- 🌐 搜索网页
- ⏰ 设置提醒
- 💬 发送消息
有什么可以帮你的吗? 😊
[ERROR] (http.py:76)_handle_response [botpy] 接口请求异常,请求连接: https://api.sgroup.qq.com/v2/users/C3E64B75DCBC7DA7ABE5B7B73B3B6F6B/messages, 错误代码: 400, 返�内容: {'message': '主动消息失败, 无权限', 'code': 40034102, 'err_code': 40034102, 'trace_id': '37f87dce7a0526fd4af6c7b7a2039348'}, trace_id:37f87dce7a0526fd4af6c7b7a2039348
2026-02-11 09:38:54.165 | ERROR | nanobot.channels.qq:send:108 - Error sending QQ message: 主动消息失败, 无权限
请问是什么问题?如何进行下一步调试?