diff --git a/main.go b/main.go index dac2e1d..e5b1472 100644 --- a/main.go +++ b/main.go @@ -74,6 +74,18 @@ func wsHandler(w http.ResponseWriter, r *http.Request) { } else if buffer == "noise" { conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://noiseprotocol.org/"}) 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 = "" } } }