Comments (6)
整个日志中没有event error,大概过程是这样
// 邀请时触发了OnGroupInvited callback
time="2021-02-24T09:52:09+08:00" level=info msg="new group invited GroupCode=xxx"
// 中间没有callback日志
// 一段时间后管理员同意了请求,开始收到群聊天内容
time="2021-02-24T09:53:17+08:00" level=info msg="[Image:{...}] GroupCode=xxx"
// 后面也没有callback日志
callback的设置方式
bot.OnGroupInvited(func(qqClient *client.QQClient, request *client.GroupInvitedRequest) {
log := logger.WithField("group_code", request.GroupCode).
WithField("group_name", request.GroupName).
WithField("invitor_uin", request.InvitorUin).
WithField("invitor_nick", request.InvitorNick)
log.Info("new group invited")
// ...
}
bot.OnJoinGroup(func(qqClient *client.QQClient, info *client.GroupInfo) {
log := logger.WithField("group_code", info.Code).
WithField("member_count", info.MemberCount).
WithField("group_name", info.Name)
log.Info("join group")
// ...
from miraigo.
miraigo的log应该没有开
from miraigo.
不是基于cq的
from miraigo.
尝试使用OnLog方法设置MiraiGo日志打印以启用debug输出
from miraigo.
在捞到日志之前close,如果其他人也出现这个问题可以reopen
from miraigo.
这个问题还是时有发生,发一下最近一次的log。
debug_log
复述一下具体情况:
收到了加群邀请,同意之后没有触发OnJoinGroup callback。
callback设置方式参考我在上面的代码,日志里有new group invited 但没有join group。
两个时间点:
- 收到邀请是16:39:05
- 第一次收到群消息是16:39:26。
日志时间是从16:39:00到16:39:27。
日志对应的miraigo版本是v0.0.0-20210518070025-f145000ac0ef,应该是当前的master。
from miraigo.
Related Issues (20)
- 如何上传语音(非tts) HOT 11
- 询问一下图片缓存的最佳方式,以及获取群历史消息时遇到的问题
- 为什么都用bytes写入,不理解 HOT 18
- MiraiGo 支持QQ 的自定义分享吗 HOT 1
- 首次启动,遇到Protocol -> decrypt payload error: unknown flag HOT 2
- 消息到达问题。出现消息发送提示成功,但是 qq 界面,macOS 桌面版,ios 手机客户端,没看到的情况 HOT 4
- [WARNING]: 登录失败: 请你稍后重试。(0x30)
- 登录成功后,绑定的事件好像没有生效,就连默认的日志模块都未生效的样子 HOT 1
- qrCode登录失败:该APP尚未开通扫描二维码登录的权限。 HOT 2
- packet decode error: MultiMsg.ApplyDown
- 希望适配ipad协议
- 回复群中的回复消息时,会多出一个`@xxx`
- 支持获取账户的账单吗
- 部分合并转发消息仅被作为APP消息接收
- 增加新协议
- use of internal package github.com/Mrs4s/MiraiGo/client/internal/auth not allowed
- 新版本使用FetchQRCode()登录时出现空指针错误 HOT 5
- 频道协议疑似发生变化
- 无法正确解析新版 macqq (6.9.19) 发送的图片 url HOT 4
- 上传群文件存在问题 新发现 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miraigo.