dfs
This commit is contained in:
parent
0eed788e48
commit
0f31be4df6
1 changed files with 1 additions and 5 deletions
|
@ -6,7 +6,6 @@ from flask_socketio import SocketIO, emit
|
|||
|
||||
sex = SocketIO(app)
|
||||
|
||||
|
||||
@app.get("/chat")
|
||||
@auth_required
|
||||
def chat( v):
|
||||
|
@ -17,10 +16,7 @@ def chat( v):
|
|||
@auth_required
|
||||
def speak(data, v):
|
||||
|
||||
raw_text=data['text'][0:1000].lstrip().rstrip()
|
||||
if not raw_text:return
|
||||
|
||||
text = sanitize(raw_text)
|
||||
text = sanitize(data['text'][0:1000].strip())
|
||||
|
||||
data={
|
||||
"avatar": v.profile_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue