mirror of https://github.com/velour/catbase.git
limit babble lengths... loops are not for kids
This commit is contained in:
parent
4fcc279433
commit
df50130389
|
@ -546,6 +546,10 @@ func (p *BabblerPlugin) babbleSeed(babblerName string, seed []string) (string, e
|
|||
break
|
||||
}
|
||||
words = append(words, curWord.Word)
|
||||
|
||||
if len(words) >= 250 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
return strings.TrimSpace(strings.Join(words, " ")), nil
|
||||
|
|
Loading…
Reference in New Issue