mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Require random names to be smaller
This commit is contained in:
parent
931a0a7c62
commit
ec99ac305c
2
utils.go
2
utils.go
@ -68,7 +68,7 @@ func randomAlliterateCombo() (combo string) {
|
||||
for {
|
||||
animal := randomAnimal()
|
||||
adjective := randomAdjective()
|
||||
if animal[0] == adjective[0] { //&& stringInSlice(strings.ToLower(adjective+animal), takenNames) == false {
|
||||
if animal[0] == adjective[0] && len(animal)+len(adjective) < 18 { //&& stringInSlice(strings.ToLower(adjective+animal), takenNames) == false {
|
||||
combo = adjective + animal
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user