mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
parent
9d9918966a
commit
e8959d8923
2
utils.go
2
utils.go
@ -68,7 +68,7 @@ func randomAlliterateCombo() (combo string) {
|
|||||||
for {
|
for {
|
||||||
animal := randomAnimal()
|
animal := randomAnimal()
|
||||||
adjective := randomAdjective()
|
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
|
combo = adjective + animal
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user