forked from MarseyWorld/MarseyWorld
relax ratelimits in casino
parent
cefd68755d
commit
20c5ad015b
|
@ -11,6 +11,7 @@ from files.helpers.twentyone import *
|
||||||
|
|
||||||
|
|
||||||
@app.get("/casino")
|
@app.get("/casino")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def casino(v):
|
def casino(v):
|
||||||
if v.rehab: return render_template("casino/rehab.html", v=v)
|
if v.rehab: return render_template("casino/rehab.html", v=v)
|
||||||
|
@ -18,6 +19,7 @@ def casino(v):
|
||||||
|
|
||||||
|
|
||||||
@app.get("/lottershe")
|
@app.get("/lottershe")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def lottershe(v):
|
def lottershe(v):
|
||||||
if v.rehab: return render_template("casino/rehab.html", v=v)
|
if v.rehab: return render_template("casino/rehab.html", v=v)
|
||||||
|
@ -27,6 +29,7 @@ def lottershe(v):
|
||||||
|
|
||||||
|
|
||||||
@app.get("/casino/<game>")
|
@app.get("/casino/<game>")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def casino_game_page(v, game):
|
def casino_game_page(v, game):
|
||||||
if v.rehab: return render_template("casino/rehab.html", v=v)
|
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")
|
@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
|
@auth_required
|
||||||
def casino_game_feed(v, game):
|
def casino_game_feed(v, game):
|
||||||
feed = get_game_feed(game)
|
feed = get_game_feed(game)
|
||||||
|
@ -52,7 +55,7 @@ def casino_game_feed(v, game):
|
||||||
|
|
||||||
|
|
||||||
@app.post("/casino/slots")
|
@app.post("/casino/slots")
|
||||||
@limiter.limit("3/second;30/minute;600/hour;12000/day")
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def pull_slots(v):
|
def pull_slots(v):
|
||||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
||||||
|
@ -79,6 +82,7 @@ def pull_slots(v):
|
||||||
|
|
||||||
|
|
||||||
@app.post("/casino/twentyone/deal")
|
@app.post("/casino/twentyone/deal")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def blackjack_deal_to_player(v):
|
def blackjack_deal_to_player(v):
|
||||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
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")
|
@app.post("/casino/twentyone/hit")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def blackjack_player_hit(v):
|
def blackjack_player_hit(v):
|
||||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
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")
|
@app.post("/casino/twentyone/stay")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def blackjack_player_stay(v):
|
def blackjack_player_stay(v):
|
||||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
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")
|
@app.post("/casino/twentyone/double-down")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def blackjack_player_doubled_down(v):
|
def blackjack_player_doubled_down(v):
|
||||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
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")
|
@app.post("/casino/twentyone/buy-insurance")
|
||||||
|
@limiter.limit("100/minute;2000/hour;12000/day")
|
||||||
@auth_required
|
@auth_required
|
||||||
def blackjack_player_bought_insurance(v):
|
def blackjack_player_bought_insurance(v):
|
||||||
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
if v.rehab: return {"error": "You are under Rehab award effect!"}
|
||||||
|
|
Loading…
Reference in New Issue