forked from rDrama/rDrama
fds
parent
bd8c090dab
commit
63f525c5d6
|
@ -5,18 +5,20 @@ from datetime import datetime
|
|||
from flask_socketio import SocketIO, emit
|
||||
from files.__main__ import app
|
||||
from flask import render_template
|
||||
import sys
|
||||
|
||||
sex = SocketIO(app, async_mode='gevent-websocket')
|
||||
if "load_chat" in sys.argv:
|
||||
sex = SocketIO(app, async_mode='gevent-websocket')
|
||||
|
||||
@app.get("/chat")
|
||||
@auth_required
|
||||
def chat( v):
|
||||
@app.get("/chat")
|
||||
@auth_required
|
||||
def chat( v):
|
||||
return render_template("chat.html", v=v)
|
||||
|
||||
|
||||
@sex.on('speak')
|
||||
@auth_required
|
||||
def speak(data, v):
|
||||
@sex.on('speak')
|
||||
@auth_required
|
||||
def speak(data, v):
|
||||
|
||||
data={
|
||||
"avatar": v.profile_url,
|
||||
|
|
Loading…
Reference in New Issue