From 3d140971a60ec4d4601e49f18ab140fd36d6d3a8 Mon Sep 17 00:00:00 2001 From: echo <91651232+exhq@users.noreply.github.com> Date: Tue, 13 Sep 2022 20:16:40 +0430 Subject: [PATCH] changed how color works, fixed "nouwu" and just cleaner shit --- util/printing.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/util/printing.go b/util/printing.go index d02170d..888032f 100644 --- a/util/printing.go +++ b/util/printing.go @@ -3,7 +3,9 @@ package util import ( "fmt" "math/rand" + "os" "strings" + //"github.com/fatih/color" ) var uwuEmotes = [15]string{ @@ -20,7 +22,7 @@ var uwuEmotes = [15]string{ "( ˘ᴗ˘ )", "(*ฅ́˘ฅ̀*)", "*screams*", - "*twearks*", + "*twerks*", "*sweats*", } @@ -71,7 +73,7 @@ func UwuPrint(message string, noUwuOverride bool, whole string) { var checkspaces int isuwu := true initLine() - if noUwuOverride || !shouldUwuify { + if noUwuOverride || !shouldUwuify || (len(os.Args) > 1 && os.Args[1] == "nouwu") { isuwu = false wholeword = message } @@ -105,19 +107,15 @@ func UwuPrint(message string, noUwuOverride bool, whole string) { } if hadAnyContent && rand.Intn(5) == 0 { - print(uwuEmotes[rand.Intn(len(uwuEmotes))]) + print(uwuEmotes[rand.Intn(len(uwuEmotes))] + " ") } wholeword = wholeword + strings.Repeat(" ", checkspaces) - if strings.Contains(notuwuified, "blue") { - handlecolor(wholeword) - } else { - print(wholeword) - } + handlecolor(wholeword) } func handlecolor(wholeword string) { - print(wholeword + "bruh") + print(wholeword) } func UwuNewline() {