From 44ad3db474765dd3df57aa3d1bf3e736d8f008b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=8B=D0=BF=D0=BF=D1=8B=20=D0=BF=D1=8B=D0=BF=D1=8B?= Date: Tue, 13 Feb 2024 18:49:00 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B3=D0=BE=D0=BB=D0=B0=D0=BD=D0=B3=20=D1=89?= =?UTF-8?q?=D0=B8=D1=82=D0=BA=D0=BE=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- foxyip.go | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 foxyip.go diff --git a/foxyip.go b/foxyip.go new file mode 100644 index 0000000..b470a3b --- /dev/null +++ b/foxyip.go @@ -0,0 +1,44 @@ +package main + +import ( + "fmt" + "math/rand" + "os" + "strings" +) + +func random(min int, max int) int { + return rand.Intn(max-min) + min +} + +func main() { + foxxo := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 47, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 47, 47, 92, 95, 32, 32, 32, 32, 47, 10, 32, 32, 32, 32, 32, 32, 32, 95, 95, 95, 95, 44, 46, 46, 46, 44, 95, 95, 95, 95, 95, 95, 46, 46, 44, 95, 126, 96, 96, 32, 32, 45, 96, 46, 46, 44, 10, 32, 32, 32, 95, 44, 126, 194, 180, 34, 39, 32, 32, 44, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 46, 32, 32, 32, 32, 44, 126, 45, 45, 194, 180, 10, 44, 45, 34, 32, 32, 32, 32, 95, 46, 34, 124, 126, 47, 32, 32, 124, 46, 46, 44, 95, 95, 95, 95, 44, 41, 32, 44, 47, 44, 44, 34, 39, 10, 92, 95, 95, 44, 126, 34, 194, 180, 32, 32, 32, 47, 58, 41, 32, 47, 32, 32, 32, 32, 32, 32, 32, 124, 58, 92, 32, 92, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 40, 58, 47, 92, 95, 45, 44, 32, 32, 32, 32, 32, 32, 92, 58, 46, 92, 95, 45, 44, 10} + wordList := []string{"yip", "mrrp", "wah", "waah", "waf", "wef", "eeeeeee", "arf", "awf", "ahf"} + var wordString string + + systemArgs := os.Args[1:] + if len(systemArgs) == 0 { + var wordAmount int = random(3, 10) + + for j := 0; j < wordAmount; j++ { + wordString += wordList[random(0, len(wordList)-1)] + " " + } + } else { + for j := 0; j < len(systemArgs); j++ { + wordString += systemArgs[j] + " " + } + } + + var spacesAmount int = 40 - len(wordString) + if spacesAmount < 0 { + spacesAmount = 0 + } + + templateList := []string{ + strings.Repeat(" ", spacesAmount+1) + strings.Repeat("_", len(wordString)+1), + strings.Repeat(" ", spacesAmount) + "< " + wordString + ">", + strings.Repeat(" ", spacesAmount+1) + strings.Repeat("-", len(wordString)+1)} + + fmt.Println(strings.Join(templateList, "\n")) + fmt.Println(string(foxxo)) +}