mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 15:57:02 +01:00 
			
		
		
		
	Experiment, lower messaging post rate to 5 secs
This commit is contained in:
		@@ -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')
 | 
			
		||||
 
 | 
			
		||||
@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user