This commit is contained in:
nelle 2024-09-17 21:39:19 -06:00
parent aac6e335af
commit 84fd85f768

View file

@ -5,9 +5,6 @@ import kotlin.streams.asSequence
// Get balloons // Get balloons
val balloon = listOf(" \uD83D\uDCAC ", " \uD83D\uDCAD ") val balloon = listOf(" \uD83D\uDCAC ", " \uD83D\uDCAD ")
// choose a random balloon out of list
val randomBalloon = balloon.asSequence().shuffled().find { true }
// get randomized meow // get randomized meow
fun getMeow(): String { fun getMeow(): String {
// source of characters to randomize // source of characters to randomize
@ -118,6 +115,8 @@ fun getMeow(): String {
) )
// choose a random cat emote out of list // choose a random cat emote out of list
val randomCat = catEmotes.asSequence().shuffled().find { true } val randomCat = catEmotes.asSequence().shuffled().find { true }
// choose a random balloon out of list
val randomBalloon = balloon.asSequence().shuffled().find { true }
// if the neocat returns empty, don't use a balloon, else return cat and random balloon // if the neocat returns empty, don't use a balloon, else return cat and random balloon
return if (randomCat == "") { return if (randomCat == "") {
@ -203,6 +202,8 @@ fun getBeep(): String {
) )
val randomBot = botEmotes.asSequence().shuffled().find { true } val randomBot = botEmotes.asSequence().shuffled().find { true }
// choose a random balloon out of list
val randomBalloon = balloon.asSequence().shuffled().find { true }
return if (randomBot == "") { return if (randomBot == "") {
"$bGen$eGen$pGen" "$bGen$eGen$pGen"