based uwuifier so true brotha on god
This commit is contained in:
parent
292207455d
commit
0be8f3f23b
1 changed files with 35 additions and 7 deletions
|
@ -123,16 +123,44 @@ func printLogoIfAtBeginningOfNewLine() {
|
|||
func uwuify(message string) string {
|
||||
sentence := strings.Split(message, " ")
|
||||
ret := ""
|
||||
uwuified := false
|
||||
for i, word := range sentence {
|
||||
if !strings.Contains(strings.ToLower(word), "uwu") {
|
||||
|
||||
ret = strings.ToLower(ret)
|
||||
if len(word) < 4 {
|
||||
ret += word
|
||||
continue
|
||||
}
|
||||
|
||||
if !strings.Contains(word, "uwu") && strings.Contains(word, "u") {
|
||||
word = strings.ReplaceAll(word, "u", "UwU")
|
||||
uwuified = true
|
||||
}
|
||||
|
||||
if !strings.Contains(strings.ToLower(word), "owo") {
|
||||
if !strings.Contains(word, "owo") && strings.Contains(word, "o") {
|
||||
word = strings.ReplaceAll(word, "o", "OwO")
|
||||
uwuified = true
|
||||
}
|
||||
word = strings.ReplaceAll(word, "r", "w")
|
||||
|
||||
if strings.HasSuffix(word, "y") {
|
||||
word = word + " " + "w" + word[:len(word)-1]
|
||||
uwuified = true
|
||||
}
|
||||
|
||||
if uwuified {
|
||||
ret += word
|
||||
if i != 0 {
|
||||
ret += " "
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
if !strings.HasSuffix("n", word) {
|
||||
word = strings.ReplaceAll(word, "n", "ny")
|
||||
}
|
||||
|
||||
word = strings.ReplaceAll(strings.ReplaceAll(word, "l", "w"), "r", "w")
|
||||
|
||||
if i != 0 {
|
||||
ret += " "
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue