From 1f7379e6a752280e0d71605adde45ab794a143f1 Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Sat, 12 Jul 2025 01:35:30 +0300 Subject: [PATCH] update --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b9685c9..ab01c79 100644 --- a/main.go +++ b/main.go @@ -71,8 +71,10 @@ func wsHandler(w http.ResponseWriter, r *http.Request) { } else if buffer == "answers" { conn.WriteJSON(map[string]string{"action": "show_message", "message": "it must be easy for you, isn't that right?"}) buffer = "" + } else if buffer == "noise" { + conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://noiseprotocol.org/"}) + buffer = "" } - } } func handler(w http.ResponseWriter, r *http.Request) {