GithubHelp home page GithubHelp logo

Comments (6)

Sora233 avatar Sora233 commented on August 25, 2024

整个日志中没有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.

Sora233 avatar Sora233 commented on August 25, 2024

miraigo的log应该没有开

from miraigo.

Sora233 avatar Sora233 commented on August 25, 2024

不是基于cq的

from miraigo.

qianjunakasumi avatar qianjunakasumi commented on August 25, 2024

尝试使用OnLog方法设置MiraiGo日志打印以启用debug输出

from miraigo.

Sora233 avatar Sora233 commented on August 25, 2024

在捞到日志之前close,如果其他人也出现这个问题可以reopen

from miraigo.

Sora233 avatar Sora233 commented on August 25, 2024

这个问题还是时有发生,发一下最近一次的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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.