This commit is contained in:
Lain Iwakura 2025-07-12 14:10:54 +03:00
parent bb19911526
commit 4e624e7bb5
No known key found for this signature in database
GPG Key ID: C7C18257F2ADC6F8

12
main.go
View File

@ -74,6 +74,18 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
} else if buffer == "noise" { } else if buffer == "noise" {
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://noiseprotocol.org/"}) conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://noiseprotocol.org/"})
buffer = "" buffer = ""
} else if buffer == "openbsd" {
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://openbsd.org/"})
buffer = ""
} else if buffer == "linux" {
conn.WriteJSON(map[string]string{"action": "show_message", "message": "Linux sucks"})
buffer = ""
} else if buffer == "mac" {
conn.WriteJSON(map[string]string{"action": "show_message", "message": "Yet another BSD-like OS"})
buffer = ""
} else if buffer == "windows" {
conn.WriteJSON(map[string]string{"action": "show_message", "message": "Windows ALLWAYS sucks"})
buffer = ""
} }
} }
} }