1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-09 20:50:23 +08:00

优化log打印

This commit is contained in:
源文雨
2023-10-17 00:27:40 +09:00
parent 1315cd67a4
commit a2d06a4aac
2 changed files with 127 additions and 1 deletions

View File

@@ -74,7 +74,10 @@ func (bot *Bot) processEvent(payload *WebsocketPayload) {
switch tp {
case "Message":
ctx.Message = (*Message)(x.UnsafePointer())
log.Infoln(getLogHeader(), "收到 Guild:", ctx.Message.GuildID, ", Channel:", ctx.Message.ChannelID, "消息", ctx.Message.Author.ID, ":", ctx.Message.Content)
if ctx.Message.MentionEveryone {
ctx.IsToMe = true
}
log.Infoln(getLogHeader(), "=>", ctx.Message)
}
go match(ctx, matchers)
}