fix(thesaurus): ingore empty seg

This commit is contained in:
源文雨 2025-02-01 16:13:43 +08:00
parent b4eb61e36a
commit 24955dc4a7

View File

@ -287,6 +287,9 @@ func randreply(m map[string][]string) zero.Handler {
text = strings.ReplaceAll(text, "{me}", nick)
id := ctx.Event.MessageID
for _, t := range strings.Split(text, "{segment}") {
if t == "" {
continue
}
process.SleepAbout1sTo2s()
id = ctx.SendChain(message.Reply(id), message.Text(t))
}