ok
This commit is contained in:
parent
6868dcd314
commit
5470426373
6
main.go
6
main.go
@ -56,9 +56,15 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
} else if buffer == "rabbit" {
|
} else if buffer == "rabbit" {
|
||||||
conn.WriteJSON(map[string]string{"action": "show_message", "message": "wake up, Neo"})
|
conn.WriteJSON(map[string]string{"action": "show_message", "message": "wake up, Neo"})
|
||||||
buffer = ""
|
buffer = ""
|
||||||
|
} else if buffer == "whoareu" {
|
||||||
|
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://t.me/systemxplore"})
|
||||||
|
buffer = ""
|
||||||
} else if buffer == "whoami" {
|
} else if buffer == "whoami" {
|
||||||
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://t.me/systemxplore"})
|
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://t.me/systemxplore"})
|
||||||
buffer = ""
|
buffer = ""
|
||||||
|
} else if buffer == "whoareyou" {
|
||||||
|
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://t.me/systemxplore"})
|
||||||
|
buffer = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user