feat(aichat): add sanitize

This commit is contained in:
源文雨
2025-03-29 17:07:14 +09:00
parent 6a747d2f9d
commit a29f4cb1f9
3 changed files with 4 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ func init() {
logrus.Warnln("[niniqun] post err:", err)
return
}
txt := strings.Trim(data, "\n  ")
txt := chat.Sanitize(strings.Trim(data, "\n  "))
if len(txt) > 0 {
chat.Reply(gid, txt)
nick := zero.BotConfig.NickName[rand.Intn(len(zero.BotConfig.NickName))]