limit babble lengths... loops are not for kids

This commit is contained in:
skkiesel 2017-05-25 15:22:58 -04:00
parent 4fcc279433
commit df50130389
1 changed files with 4 additions and 0 deletions

View File

@ -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