forked from MarseyWorld/MarseyWorld
fds
parent
95e910c670
commit
cd79cfaa8d
|
@ -7,8 +7,6 @@ from files.__main__ import app
|
|||
from flask import render_template
|
||||
import sys
|
||||
|
||||
if "load_chat" in sys.argv:
|
||||
sex = SocketIO(app)
|
||||
|
||||
@app.get("/chat")
|
||||
@auth_required
|
||||
|
@ -16,6 +14,9 @@ if "load_chat" in sys.argv:
|
|||
return render_template("chat.html", v=v)
|
||||
|
||||
|
||||
if "load_chat" in sys.argv:
|
||||
sex = SocketIO(app)
|
||||
|
||||
@sex.on('speak')
|
||||
@auth_required
|
||||
def speak(data, v):
|
||||
|
|
Loading…
Reference in New Issue