LGB: disable wordle.

master
Snakes 2022-07-23 02:22:45 -04:00
parent f418bf4333
commit 4723332e07
Signed by: Snakes
GPG Key ID: E745A82778055C7E
3 changed files with 9 additions and 5 deletions

View File

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

View File

@ -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}'

View File

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