forked from rDrama/rDrama
LGB: disable gambling.
parent
9d036441e7
commit
be983504b7
|
@ -51,7 +51,7 @@ def format_all(player_hand, dealer_hand, deck, status, wager, kind, is_insured=0
|
||||||
|
|
||||||
|
|
||||||
def check_for_blackjack_commands(in_text, from_user, from_comment):
|
def check_for_blackjack_commands(in_text, from_user, from_comment):
|
||||||
if not from_user.can_gamble:
|
if not FEATURES['GAMBLING'] or not from_user.can_gamble:
|
||||||
return
|
return
|
||||||
|
|
||||||
for command_word in (coins_command_word, marseybux_command_word):
|
for command_word in (coins_command_word, marseybux_command_word):
|
||||||
|
|
|
@ -150,6 +150,7 @@ FEATURES = {
|
||||||
'PRONOUNS': False,
|
'PRONOUNS': False,
|
||||||
'HOUSES': False,
|
'HOUSES': False,
|
||||||
'USERS_SUICIDE': True,
|
'USERS_SUICIDE': True,
|
||||||
|
'GAMBLING': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
EMOJI_MARSEYS = True
|
EMOJI_MARSEYS = True
|
||||||
|
@ -327,6 +328,7 @@ elif SITE == 'lgbdropthet.com':
|
||||||
FEATURES['PROCOINS'] = False
|
FEATURES['PROCOINS'] = False
|
||||||
FEATURES['CHAT'] = False
|
FEATURES['CHAT'] = False
|
||||||
FEATURES['USERS_SUICIDE'] = False
|
FEATURES['USERS_SUICIDE'] = False
|
||||||
|
FEATURES['GAMBLING'] = False
|
||||||
|
|
||||||
EMOJI_MARSEYS = False
|
EMOJI_MARSEYS = False
|
||||||
EMOJI_SRCS = ['files/assets/emojis.lgbdropthet.json']
|
EMOJI_SRCS = ['files/assets/emojis.lgbdropthet.json']
|
||||||
|
@ -350,6 +352,8 @@ else: # localhost or testing environment implied
|
||||||
FEATURES['PRONOUNS'] = True
|
FEATURES['PRONOUNS'] = True
|
||||||
FEATURES['HOUSES'] = True
|
FEATURES['HOUSES'] = True
|
||||||
|
|
||||||
|
FEATURES['GAMBLING'] = False
|
||||||
|
|
||||||
if SITE == 'deuxrama.net':
|
if SITE == 'deuxrama.net':
|
||||||
PERMS['HOLE_CREATE'] = 3
|
PERMS['HOLE_CREATE'] = 3
|
||||||
PERMS['CONTENT_THREADS'] = 2
|
PERMS['CONTENT_THREADS'] = 2
|
||||||
|
|
|
@ -19,7 +19,7 @@ def shuffle(stuff):
|
||||||
return stuff
|
return stuff
|
||||||
|
|
||||||
def check_for_slots_command(in_text, from_user, from_comment):
|
def check_for_slots_command(in_text, from_user, from_comment):
|
||||||
if not from_user.can_gamble:
|
if not FEATURES['GAMBLING'] or not from_user.can_gamble:
|
||||||
return
|
return
|
||||||
|
|
||||||
in_text = in_text.lower()
|
in_text = in_text.lower()
|
||||||
|
|
|
@ -12,7 +12,7 @@ lotterizer_rate = 33
|
||||||
def check_for_treasure(in_text, from_comment):
|
def check_for_treasure(in_text, from_comment):
|
||||||
user = from_comment.author
|
user = from_comment.author
|
||||||
|
|
||||||
if not user.can_gamble:
|
if not FEATURES['GAMBLING'] or not user.can_gamble:
|
||||||
return
|
return
|
||||||
|
|
||||||
if '!slots' not in in_text and '!blackjack' not in in_text and '!wordle' not in in_text:
|
if '!slots' not in in_text and '!blackjack' not in in_text and '!wordle' not in in_text:
|
||||||
|
|
|
@ -599,6 +599,7 @@ line breaks
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
{% if FEATURES['GAMBLING'] %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>!slots100</td>
|
<td>!slots100</td>
|
||||||
<td>Play slots using coins - minimum 100 coins</td>
|
<td>Play slots using coins - minimum 100 coins</td>
|
||||||
|
@ -619,6 +620,7 @@ line breaks
|
||||||
<td>Play blackjack using marseybux - minimum 100 marseybux</td>
|
<td>Play blackjack using marseybux - minimum 100 marseybux</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>!wordle</td>
|
<td>!wordle</td>
|
||||||
<td>Play wordle</td>
|
<td>Play wordle</td>
|
||||||
|
|
Loading…
Reference in New Issue