mirror of
https://github.com/velour/catbase.git
synced 2025-04-03 11:49:55 +00:00
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
|
break
|
||||||
}
|
}
|
||||||
words = append(words, curWord.Word)
|
words = append(words, curWord.Word)
|
||||||
|
|
||||||
|
if len(words) >= 250 {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return strings.TrimSpace(strings.Join(words, " ")), nil
|
return strings.TrimSpace(strings.Join(words, " ")), nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user