From 4e624e7bb5b01681de3a2ccb18b4da128f95ba4e Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Sat, 12 Jul 2025 14:10:54 +0300 Subject: [PATCH] yod --- main.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 = "" } } }