forked from MarseyWorld/MarseyWorld
LGB: disable wordle.
parent
f418bf4333
commit
4723332e07
|
@ -153,6 +153,7 @@ FEATURES = {
|
|||
'BADGES': True,
|
||||
'HOUSES': False,
|
||||
'GAMBLING': True,
|
||||
'WORDLE': True,
|
||||
'USERS_PROFILE_BANNER': True,
|
||||
'USERS_PROFILE_BODYTEXT': True,
|
||||
'USERS_PROFILE_SONG': True,
|
||||
|
@ -338,6 +339,7 @@ elif SITE == 'lgbdropthet.com':
|
|||
FEATURES['COUNTRY_CLUB'] = False
|
||||
FEATURES['BADGES'] = False
|
||||
FEATURES['GAMBLING'] = False
|
||||
FEATURES['WORDLE'] = False
|
||||
FEATURES['USERS_PROFILE_BANNER'] = False
|
||||
FEATURES['USERS_PROFILE_BODYTEXT'] = False
|
||||
FEATURES['USERS_PROFILE_SONG'] = False
|
||||
|
|
|
@ -614,7 +614,7 @@ def api_comment(v):
|
|||
|
||||
check_for_treasure(body, c)
|
||||
|
||||
if "!wordle" in body:
|
||||
if FEATURES['WORDLE'] and "!wordle" in body:
|
||||
answer = random.choice(WORDLE_LIST)
|
||||
c.wordle_result = f'_active_{answer}'
|
||||
|
||||
|
|
|
@ -628,10 +628,12 @@ line breaks
|
|||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td>!wordle</td>
|
||||
<td>Play wordle</td>
|
||||
</tr>
|
||||
{% if FEATURES['WORDLE'] %}
|
||||
<tr>
|
||||
<td>!wordle</td>
|
||||
<td>Play wordle</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue