MCPcopy
hub / github.com/danielgross/whatsapp-gpt / chat

Function chat

server.py:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55@APP.route("/chat", methods=["GET"])
56def chat():
57 message = flask.request.args.get("q")
58 print("Sending message: ", message)
59 send_message(message)
60 response = get_last_message()
61 print("Response: ", response)
62 return response
63
64def start_browser():
65 PAGE.goto("https://chat.openai.com/")

Callers

nothing calls this directly

Calls 2

send_messageFunction · 0.85
get_last_messageFunction · 0.85

Tested by

no test coverage detected