master
Aevann1 2022-09-15 09:00:02 +00:00
parent 8236514115
commit 43aeb6e1f9
1 changed files with 12 additions and 12 deletions

View File

@ -13,7 +13,7 @@ from files.helpers.roulette import *
@app.get("/casino") @app.get("/casino")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def casino(v): def casino(v):
if v.rehab: if v.rehab:
return render_template("casino/rehab.html", v=v) return render_template("casino/rehab.html", v=v)
@ -23,7 +23,7 @@ def casino(v):
@app.get("/casino/<game>") @app.get("/casino/<game>")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def casino_game_page(v, game): def casino_game_page(v, game):
if v.rehab: if v.rehab:
return render_template("casino/rehab.html", v=v) return render_template("casino/rehab.html", v=v)
@ -42,7 +42,7 @@ def casino_game_page(v, game):
@app.get("/casino/<game>/feed") @app.get("/casino/<game>/feed")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def casino_game_feed(v, game): def casino_game_feed(v, game):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -54,7 +54,7 @@ def casino_game_feed(v, game):
# Lottershe # Lottershe
@app.get("/lottershe") @app.get("/lottershe")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def lottershe(v): def lottershe(v):
if v.rehab: if v.rehab:
return render_template("casino/rehab.html", v=v) return render_template("casino/rehab.html", v=v)
@ -65,7 +65,7 @@ def lottershe(v):
# Slots # Slots
@app.post("/casino/slots") @app.post("/casino/slots")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def pull_slots(v): def pull_slots(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -94,7 +94,7 @@ def pull_slots(v):
# 21 # 21
@app.post("/casino/twentyone/deal") @app.post("/casino/twentyone/deal")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def blackjack_deal_to_player(v): def blackjack_deal_to_player(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -113,7 +113,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") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def blackjack_player_hit(v): def blackjack_player_hit(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -128,7 +128,7 @@ def blackjack_player_hit(v):
@app.post("/casino/twentyone/stay") @app.post("/casino/twentyone/stay")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def blackjack_player_stay(v): def blackjack_player_stay(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -143,7 +143,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") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def blackjack_player_doubled_down(v): def blackjack_player_doubled_down(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -158,7 +158,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") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def blackjack_player_bought_insurance(v): def blackjack_player_bought_insurance(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -173,7 +173,7 @@ def blackjack_player_bought_insurance(v):
# Roulette # Roulette
@app.get("/casino/roulette/bets") @app.get("/casino/roulette/bets")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def roulette_get_bets(v): def roulette_get_bets(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400
@ -185,7 +185,7 @@ def roulette_get_bets(v):
@app.post("/casino/roulette/place-bet") @app.post("/casino/roulette/place-bet")
@limiter.limit("100/minute;2000/hour;12000/day") @limiter.limit("100/minute;2000/hour;12000/day")
@admin_level_required(3) @admin_level_required(4)
def roulette_player_placed_bet(v): def roulette_player_placed_bet(v):
if v.rehab: if v.rehab:
return {"error": "You are under Rehab award effect!"}, 400 return {"error": "You are under Rehab award effect!"}, 400