changed how color works, fixed "nouwu" and just cleaner shit
This commit is contained in:
parent
e0f42c971b
commit
c6316fc5b2
1 changed files with 7 additions and 9 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue