mirror of https://github.com/velour/catbase.git
Merge pull request #54 from velour/fix_loop
limit babble lengths... loops are not for kids
This commit is contained in:
commit
0f94b6203e
|
@ -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