1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-06 03:00:24 +08:00

fix message

This commit is contained in:
源文雨
2023-10-16 12:29:49 +09:00
parent 051abe5773
commit fe4f7bf060

View File

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