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):
|
||||
if not from_user.can_gamble:
|
||||
if not FEATURES['GAMBLING'] or not from_user.can_gamble:
|
||||
return
|
||||
|
||||
for command_word in (coins_command_word, marseybux_command_word):
|
||||
|
|
|
@ -150,6 +150,7 @@ FEATURES = {
|
|||
'PRONOUNS': False,
|
||||
'HOUSES': False,
|
||||
'USERS_SUICIDE': True,
|
||||
'GAMBLING': True,
|
||||
}
|
||||
|
||||
EMOJI_MARSEYS = True
|
||||
|
@ -327,6 +328,7 @@ elif SITE == 'lgbdropthet.com':
|
|||
FEATURES['PROCOINS'] = False
|
||||
FEATURES['CHAT'] = False
|
||||
FEATURES['USERS_SUICIDE'] = False
|
||||
FEATURES['GAMBLING'] = False
|
||||
|
||||
EMOJI_MARSEYS = False
|
||||
EMOJI_SRCS = ['files/assets/emojis.lgbdropthet.json']
|
||||
|
@ -350,6 +352,8 @@ else: # localhost or testing environment implied
|
|||
FEATURES['PRONOUNS'] = True
|
||||
FEATURES['HOUSES'] = True
|
||||
|
||||
FEATURES['GAMBLING'] = False
|
||||
|
||||
if SITE == 'deuxrama.net':
|
||||
PERMS['HOLE_CREATE'] = 3
|
||||
PERMS['CONTENT_THREADS'] = 2
|
||||
|
|
|
@ -19,7 +19,7 @@ def shuffle(stuff):
|
|||
return stuff
|
||||
|
||||
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
|
||||
|
||||
in_text = in_text.lower()
|
||||
|
|
|
@ -12,7 +12,7 @@ lotterizer_rate = 33
|
|||
def check_for_treasure(in_text, from_comment):
|
||||
user = from_comment.author
|
||||
|
||||
if not user.can_gamble:
|
||||
if not FEATURES['GAMBLING'] or not user.can_gamble:
|
||||
return
|
||||
|
||||
if '!slots' not in in_text and '!blackjack' not in in_text and '!wordle' not in in_text:
|
||||
|
|
|
@ -599,25 +599,27 @@ line breaks
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>!slots100</td>
|
||||
<td>Play slots using coins - minimum 100 coins</td>
|
||||
</tr>
|
||||
{% if FEATURES['PROCOINS'] %}
|
||||
{% if FEATURES['GAMBLING'] %}
|
||||
<tr>
|
||||
<td>!slotsmb100</td>
|
||||
<td>Play slots using marseybux - minimum 100 marseybux</td>
|
||||
<td>!slots100</td>
|
||||
<td>Play slots using coins - minimum 100 coins</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td>!blackjack100</td>
|
||||
<td>Play blackjack using coins - minimum 100 coins</td>
|
||||
</tr>
|
||||
{% if FEATURES['PROCOINS'] %}
|
||||
{% if FEATURES['PROCOINS'] %}
|
||||
<tr>
|
||||
<td>!slotsmb100</td>
|
||||
<td>Play slots using marseybux - minimum 100 marseybux</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td>!blackjackmb100</td>
|
||||
<td>Play blackjack using marseybux - minimum 100 marseybux</td>
|
||||
<td>!blackjack100</td>
|
||||
<td>Play blackjack using coins - minimum 100 coins</td>
|
||||
</tr>
|
||||
{% if FEATURES['PROCOINS'] %}
|
||||
<tr>
|
||||
<td>!blackjackmb100</td>
|
||||
<td>Play blackjack using marseybux - minimum 100 marseybux</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td>!wordle</td>
|
||||
|
|
Loading…
Reference in New Issue