master
Aevann1 2022-03-22 05:11:10 +02:00
parent 9c0fa970e8
commit c6fd551563
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ if SITE in ('pcmemes.net', 'localhost'):
return render_template("chat.html", v=v)
@socketio.on('speak')
@limiter.limit("3/second;30/minute")
@auth_required
def speak(data, v):

View File

@ -48,7 +48,7 @@
<span id="typing-indicator"></span>
<span id="loading-indicator" class="d-none"></span>
</div>
<i class="btn btn-secondary mr-2 fas fa-smile-beam" onclick="loadEmojis('input-text')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-placement="bottom" title="Add Emoji"></i>
<i class="btn btn-secondary mr-2 fas fa-smile-beam" style="padding-top:0.75rem" onclick="loadEmojis('input-text')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-placement="bottom" title="Add Emoji"></i>
<input id="input-text" type="text" class="form-control" placeholder="Message" autocomplete="off" autofocus />
<button id="chatsend" onclick="send()" class="btn btn-primary ml-3" type="submit">Send</button>
</div>