holy fucking shit fr another neowofetch ubdate????!?!?!?!/! i fucking love neowofetch its the best fucking anime bro frfr bruh fr

This commit is contained in:
echo 2022-09-21 15:47:42 +04:30
parent 2237931b5d
commit 084603b8a8
5 changed files with 42 additions and 19 deletions

20
main.go
View file

@ -3,6 +3,7 @@ package main
import (
"fmt"
"io/ioutil"
"neowofetch/asciiart"
"os"
"os/exec"
"path/filepath"
@ -13,15 +14,6 @@ import (
)
var isuwuified bool = true
var arch = ` /\
/ \
/\ \
/ > ω <\
/ __ \
/ __| |__-\
/_-'' ''-_\
`
var linearch []string
var aa int
@ -42,7 +34,7 @@ func getConfigFile() string {
}
func initascii() {
linearch = strings.Split(arch, "\n")
linearch = asciiart.Getascii(getDistro())
aa = 0
print(linearch[aa])
aa = aa + 1
@ -106,6 +98,10 @@ func handlePrint(action, colour string, rest string) {
Cprint(colour, formatTime(no), false)
case "hostname":
Cprint(colour, getHostname(), true)
case "GPU":
Cprint(colour, getGPU(), true)
case "shell":
Cprint(colour, getShell(), true)
}
}
if action == "infoln" {
@ -164,10 +160,10 @@ func uwuify(message string) string {
for _, word := range sentence {
if !strings.Contains(strings.ToLower(word), "uwu") {
word = strings.Replace(word, "u", "UwU", 1)
word = strings.Replace(word, "u", "UwU", -1)
if strings.Contains(strings.ToLower(word), "owo") {
word = strings.Replace(word, "o", "OwO", 1)
word = strings.Replace(word, "o", "OwO", -1)
}
}