Skip to content

Commit

Permalink
fix: MessageFilter: disable private message report to avoid getting b…
Browse files Browse the repository at this point in the history
…anned from IM
  • Loading branch information
guimc233 committed Feb 24, 2024
1 parent b4a3e63 commit f98e7dd
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import net.mamoe.mirai.contact.Group
import net.mamoe.mirai.contact.Member
import net.mamoe.mirai.event.events.GroupMessageEvent
import net.mamoe.mirai.message.data.ForwardMessage
import net.mamoe.mirai.message.data.ForwardMessageBuilder
import net.mamoe.mirai.message.data.MessageChain
import net.mamoe.mirai.message.data.MessageSource.Key.recall
import net.mamoe.mirai.message.data.content
Expand Down Expand Up @@ -145,10 +144,10 @@ object MessageFilter {
} else {
val botOwner = e.bot.getFriend(Config.BotOwner)
requireNotNull(botOwner)
botOwner.sendMessage("发现一条模型认为违规的消息, 但正则匹配失败, 请检查.")
val outputMessage = ForwardMessageBuilder(e.group)
outputMessage.add(e)
botOwner.sendMessage(outputMessage.build())
// botOwner.sendMessage("发现一条模型认为违规的消息, 但正则匹配失败, 请检查.")
// val outputMessage = ForwardMessageBuilder(e.group)
// outputMessage.add(e)
// botOwner.sendMessage(outputMessage.build())
}
}
}
Expand Down

0 comments on commit f98e7dd

Please sign in to comment.