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 committed by nea
parent 7c290dd820
commit f206dfc0bf
No known key found for this signature in database
GPG key ID: AA563E93EB628D91
5 changed files with 42 additions and 19 deletions

0
asciiart/README Normal file
View file

32
asciiart/asciiart.go Normal file
View file

@ -0,0 +1,32 @@
package asciiart
import (
"strings"
)
func Getascii(name string) []string {
none := `!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!
!!!!noascii!!!!
!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!
`
arch := ` /\
/ \
/\ \
/ > ω <\
/ __ \
/ __| |__-\
/_-'' ''-_\
`
switch name {
case "Arch Linux":
return strings.Split(arch, "\n")
default:
return strings.Split(none, "\n")
}
}

4
go.mod
View file

@ -1,9 +1,9 @@
module color
module neowofetch
go 1.19
require (
github.com/fatih/color v1.13.0 // indirect
github.com/fatih/color v1.13.0
github.com/mattn/go-colorable v0.1.9 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect

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)
}
}

View file

@ -1,5 +0,0 @@
package subdirectory;
func TestFun() {
}