make !SLOTS work too

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-31 02:20:50 +02:00
parent df559c6af5
commit 88e7f30f04
1 changed files with 4 additions and 4 deletions

View File

@ -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)