From 0b32db43c0a3c2971b8d31be82ff3a478920f9b1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 27 Jan 2022 23:26:20 +0200 Subject: [PATCH] vxcvcx --- files/classes/slots.py | 2 +- files/routes/comments.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/files/classes/slots.py b/files/classes/slots.py index f9392da99f..d7bfd48bf4 100644 --- a/files/classes/slots.py +++ b/files/classes/slots.py @@ -8,7 +8,7 @@ def shuffle(stuff): class Slots: command_word = "!slots" casino_word = "!casino" - minimum_bet = 5 + minimum_bet = 100 maximum_bet = INFINITY payout_to_symbols = { 2: ["👣", "🍀", "🌈", "⭐️"], diff --git a/files/routes/comments.py b/files/routes/comments.py index 929f2c3a0e..4cc5022516 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -212,7 +212,7 @@ def api_comment(v): except Exception as e: print(e) return {"error": "You didn't follow the format retard"}, 400 - elif v.id in (CARP_ID,AEVANN_ID) and parent_post.id == 37838: + elif v.admin_level > 2 and parent_post.id == 37838: try: marsey = loads(body.lower()) name = marsey["name"] @@ -600,7 +600,8 @@ def edit_comment(cid, v): body = request.values.get("body", "").strip()[:10000] - if len(body) < 1: return {"error":"You have to actually type something!"}, 400 + if len(body) < 1 and not (request.files.get("file") and request.headers.get("cf-ipcountry") != "T1"): + return {"error":"You have to actually type something!"}, 400 if body != c.body or request.files.get("file") and request.headers.get("cf-ipcountry") != "T1": if v.marseyawarded: