relax ratelimits in casino

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-11 04:05:50 +02:00
parent cefd68755d
commit 20c5ad015b
1 changed files with 10 additions and 2 deletions

View File

@ -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/<game>")
@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/<game>/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!"}