Experiment, lower messaging post rate to 5 secs

This commit is contained in:
Jeremy Zhang 2017-08-27 21:48:45 +00:00
parent 2226693739
commit 12936455b0
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ def fetch_visitor():
@api.route("/post", methods=["POST"])
@valid_session_required(api=True)
@rate_limiter.limit("1 per 10 second", key_func = channel_ratelimit_key)
@rate_limiter.limit("1 per 5 second", key_func = channel_ratelimit_key)
def post():
guild_id = request.form.get("guild_id")
channel_id = request.form.get('channel_id')

View File

@ -896,7 +896,7 @@
});
funct.catch(function(data) {
if (data.status == 429) {
Materialize.toast('You are sending messages too fast! 1 message per 10 seconds', 10000);
Materialize.toast('You are sending messages too fast! 1 message per 5 seconds', 10000);
}
});
funct.always(function() {