changed how color works, fixed "nouwu" and just cleaner shit

This commit is contained in:
echo 2022-09-13 20:16:40 +04:30 committed by nea
parent e0f42c971b
commit c6316fc5b2
No known key found for this signature in database
GPG key ID: AA563E93EB628D91

View file

@ -3,7 +3,9 @@ package util
import ( import (
"fmt" "fmt"
"math/rand" "math/rand"
"os"
"strings" "strings"
//"github.com/fatih/color"
) )
var uwuEmotes = [15]string{ var uwuEmotes = [15]string{
@ -20,7 +22,7 @@ var uwuEmotes = [15]string{
"( ˘ᴗ˘ )", "( ˘ᴗ˘ )",
"(*ฅ́˘ฅ̀*)", "(*ฅ́˘ฅ̀*)",
"*screams*", "*screams*",
"*twearks*", "*twerks*",
"*sweats*", "*sweats*",
} }
@ -71,7 +73,7 @@ func UwuPrint(message string, noUwuOverride bool, whole string) {
var checkspaces int var checkspaces int
isuwu := true isuwu := true
initLine() initLine()
if noUwuOverride || !shouldUwuify { if noUwuOverride || !shouldUwuify || (len(os.Args) > 1 && os.Args[1] == "nouwu") {
isuwu = false isuwu = false
wholeword = message wholeword = message
} }
@ -105,19 +107,15 @@ func UwuPrint(message string, noUwuOverride bool, whole string) {
} }
if hadAnyContent && rand.Intn(5) == 0 { if hadAnyContent && rand.Intn(5) == 0 {
print(uwuEmotes[rand.Intn(len(uwuEmotes))]) print(uwuEmotes[rand.Intn(len(uwuEmotes))] + " ")
} }
wholeword = wholeword + strings.Repeat(" ", checkspaces) wholeword = wholeword + strings.Repeat(" ", checkspaces)
if strings.Contains(notuwuified, "blue") { handlecolor(wholeword)
handlecolor(wholeword)
} else {
print(wholeword)
}
} }
func handlecolor(wholeword string) { func handlecolor(wholeword string) {
print(wholeword + "bruh") print(wholeword)
} }
func UwuNewline() { func UwuNewline() {