diff --git a/files/helpers/const.py b/files/helpers/const.py index 6bbcb46db..1111361f6 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -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 diff --git a/files/routes/comments.py b/files/routes/comments.py index 5db2cb83c..e8cdbb123 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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}' diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 2b3a2f636..f42a02ec0 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -628,10 +628,12 @@ line breaks {% endif %} {% endif %} - - !wordle - Play wordle - + {% if FEATURES['WORDLE'] %} + + !wordle + Play wordle + + {% endif %}