upd
This commit is contained in:
parent
08800326da
commit
f215e00bb6
6
main.go
6
main.go
@ -65,6 +65,12 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
} else if buffer == "whoareyou" {
|
||||
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://t.me/systemxplore"})
|
||||
buffer = ""
|
||||
} else if buffer == "answer" {
|
||||
conn.WriteJSON(map[string]string{"action": "show_message", "message": "it must be easy for you, isn't that right?"})
|
||||
buffer = ""
|
||||
} else if buffer == "answers" {
|
||||
conn.WriteJSON(map[string]string{"action": "show_message", "message": "it must be easy for you, isn't that right?"})
|
||||
buffer = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user