forked from rDrama/rDrama
make !SLOTS work too
parent
df559c6af5
commit
88e7f30f04
|
@ -357,19 +357,19 @@ def comment(v):
|
||||||
parent_post.comment_count += 1
|
parent_post.comment_count += 1
|
||||||
g.db.add(parent_post)
|
g.db.add(parent_post)
|
||||||
|
|
||||||
|
body = c.body.lower()
|
||||||
if FEATURES['GAMBLING'] and '!slots' in c.body:
|
if FEATURES['GAMBLING'] and '!slots' in body:
|
||||||
if v.rehab:
|
if v.rehab:
|
||||||
abort(403, "You are under Rehab award effect!")
|
abort(403, "You are under Rehab award effect!")
|
||||||
|
|
||||||
if '!slotsmb' in c.body:
|
if '!slotsmb' in body:
|
||||||
command_word = '!slotsmb'
|
command_word = '!slotsmb'
|
||||||
currency = 'procoins'
|
currency = 'procoins'
|
||||||
else:
|
else:
|
||||||
command_word = '!slots'
|
command_word = '!slots'
|
||||||
currency = 'coins'
|
currency = 'coins'
|
||||||
|
|
||||||
wager = c.body.split(command_word)[1].split()[0]
|
wager = body.split(command_word)[1].split()[0]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
wager = int(wager)
|
wager = int(wager)
|
||||||
|
|
Loading…
Reference in New Issue