diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index e13c8027e..860f52045 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -537,6 +537,7 @@ FEATURES = { 'ASSET_SUBMISSIONS': False, 'NSFW_MARKING': True, 'PING_GROUPS': True, + 'BOTS': True, } WERKZEUG_ERROR_DESCRIPTIONS = { @@ -835,6 +836,7 @@ elif SITE == 'watchpeopledie.tv': FEATURES['PATRON_ICONS'] = True FEATURES['NSFW_MARKING'] = False + FEATURES['BOTS'] = False PERMS['HOLE_CREATE'] = 2 PERMS['POST_EDITING'] = 2 diff --git a/files/routes/__init__.py b/files/routes/__init__.py index 48656abea..650cd0706 100644 --- a/files/routes/__init__.py +++ b/files/routes/__init__.py @@ -24,7 +24,8 @@ from .reporting import * from .front import * from .login import * from .mail import * -from .oauth import * +if FEATURES['BOTS']: + from .oauth import * from .posts import * from .search import * from .settings import * diff --git a/files/templates/settings.html b/files/templates/settings.html index c7b1a7173..ccb904d8c 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -21,7 +21,9 @@ - + {% if FEATURES["BOTS"] %} + + {% endif %}