From 20c5ad015b312a052f07d2510ef465389b98b3b7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 11 Sep 2022 04:05:50 +0200 Subject: [PATCH] relax ratelimits in casino --- files/routes/casino.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/files/routes/casino.py b/files/routes/casino.py index f44e650c9..56677e35a 100644 --- a/files/routes/casino.py +++ b/files/routes/casino.py @@ -11,6 +11,7 @@ from files.helpers.twentyone import * @app.get("/casino") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def casino(v): if v.rehab: return render_template("casino/rehab.html", v=v) @@ -18,6 +19,7 @@ def casino(v): @app.get("/lottershe") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def lottershe(v): if v.rehab: return render_template("casino/rehab.html", v=v) @@ -27,6 +29,7 @@ def lottershe(v): @app.get("/casino/") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def casino_game_page(v, game): if v.rehab: return render_template("casino/rehab.html", v=v) @@ -44,7 +47,7 @@ def casino_game_page(v, game): @app.get("/casino//feed") -@limiter.limit("1/second;50/minute;600/hour;12000/day") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def casino_game_feed(v, game): feed = get_game_feed(game) @@ -52,7 +55,7 @@ def casino_game_feed(v, game): @app.post("/casino/slots") -@limiter.limit("3/second;30/minute;600/hour;12000/day") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def pull_slots(v): if v.rehab: return {"error": "You are under Rehab award effect!"} @@ -79,6 +82,7 @@ def pull_slots(v): @app.post("/casino/twentyone/deal") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def blackjack_deal_to_player(v): if v.rehab: return {"error": "You are under Rehab award effect!"} @@ -93,6 +97,7 @@ def blackjack_deal_to_player(v): @app.post("/casino/twentyone/hit") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def blackjack_player_hit(v): if v.rehab: return {"error": "You are under Rehab award effect!"} @@ -106,6 +111,7 @@ def blackjack_player_hit(v): @app.post("/casino/twentyone/stay") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def blackjack_player_stay(v): if v.rehab: return {"error": "You are under Rehab award effect!"} @@ -119,6 +125,7 @@ def blackjack_player_stay(v): @app.post("/casino/twentyone/double-down") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def blackjack_player_doubled_down(v): if v.rehab: return {"error": "You are under Rehab award effect!"} @@ -132,6 +139,7 @@ def blackjack_player_doubled_down(v): @app.post("/casino/twentyone/buy-insurance") +@limiter.limit("100/minute;2000/hour;12000/day") @auth_required def blackjack_player_bought_insurance(v): if v.rehab: return {"error": "You are under Rehab award effect!"}