mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-06 15:20:22 +00:00
feat(aichat): add sanitize
This commit is contained in:
@@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user