From 88e7f30f04af1e31b2fb8dd11aada8f4a1245b34 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 31 Oct 2022 02:20:50 +0200 Subject: [PATCH] make !SLOTS work too --- files/routes/comments.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 5cb17971b..88353e4f9 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -357,19 +357,19 @@ def comment(v): parent_post.comment_count += 1 g.db.add(parent_post) - - if FEATURES['GAMBLING'] and '!slots' in c.body: + body = c.body.lower() + if FEATURES['GAMBLING'] and '!slots' in body: if v.rehab: abort(403, "You are under Rehab award effect!") - if '!slotsmb' in c.body: + if '!slotsmb' in body: command_word = '!slotsmb' currency = 'procoins' else: command_word = '!slots' currency = 'coins' - wager = c.body.split(command_word)[1].split()[0] + wager = body.split(command_word)[1].split()[0] try: wager = int(wager)