2022-11-15 09:19:08 +00:00
|
|
|
# import constants then...
|
2023-03-12 13:03:58 +00:00
|
|
|
from files.helpers.config.const import *
|
2022-11-09 05:35:24 +00:00
|
|
|
|
2022-11-15 09:19:08 +00:00
|
|
|
# import flask then...
|
2022-12-29 10:42:08 +00:00
|
|
|
from flask import g, request, render_template, make_response, redirect, send_file
|
2022-11-15 09:19:08 +00:00
|
|
|
|
|
|
|
# import our app then...
|
|
|
|
from files.__main__ import app
|
|
|
|
|
|
|
|
# import route helpers then...
|
|
|
|
from files.routes.routehelpers import *
|
|
|
|
|
|
|
|
# import wrappers then...
|
|
|
|
from files.routes.wrappers import *
|
|
|
|
|
|
|
|
# import jinja2 then... (lmao this was in feeds.py before wtf)
|
|
|
|
from files.routes.jinja2 import *
|
|
|
|
|
|
|
|
# import routes :)
|
2022-05-04 23:09:46 +00:00
|
|
|
from .admin import *
|
|
|
|
from .comments import *
|
|
|
|
from .errors import *
|
|
|
|
from .reporting import *
|
|
|
|
from .front import *
|
|
|
|
from .login import *
|
2022-11-15 09:19:08 +00:00
|
|
|
from .mail import *
|
2024-03-04 20:16:56 +00:00
|
|
|
if get_setting('bots') :
|
2023-03-16 04:07:39 +00:00
|
|
|
from .oauth import *
|
2022-05-04 23:09:46 +00:00
|
|
|
from .posts import *
|
|
|
|
from .search import *
|
|
|
|
from .settings import *
|
|
|
|
from .static import *
|
|
|
|
from .users import *
|
2023-11-18 17:06:11 +00:00
|
|
|
from .leaderboard import *
|
2022-05-04 23:09:46 +00:00
|
|
|
from .votes import *
|
|
|
|
from .feeds import *
|
2022-11-15 11:37:42 +00:00
|
|
|
if FEATURES['AWARDS']:
|
|
|
|
from .awards import *
|
2024-08-01 01:09:48 +00:00
|
|
|
from .tenor import *
|
2023-10-07 17:55:50 +00:00
|
|
|
from .holes import *
|
2022-11-15 11:37:42 +00:00
|
|
|
if FEATURES['GAMBLING']:
|
|
|
|
from .lottery import *
|
|
|
|
from .casino import *
|
2022-07-08 18:06:54 +00:00
|
|
|
from .polls import *
|
2022-09-02 23:58:55 +00:00
|
|
|
from .notifications import *
|
2022-11-16 12:52:16 +00:00
|
|
|
if FEATURES['HATS']:
|
|
|
|
from .hats import *
|
2023-10-24 19:04:40 +00:00
|
|
|
if FEATURES['EMOJI_SUBMISSIONS'] or FEATURES['HAT_SUBMISSIONS']:
|
2022-11-15 09:19:08 +00:00
|
|
|
from .asset_submissions import *
|
2024-03-04 23:54:15 +00:00
|
|
|
if FEATURES['ART_SUBMISSIONS']:
|
|
|
|
from .art_submissions import *
|
2023-08-03 06:27:25 +00:00
|
|
|
from .special import *
|
2022-12-02 22:21:18 +00:00
|
|
|
from .push_notifs import *
|
2023-02-24 06:31:06 +00:00
|
|
|
if FEATURES['PING_GROUPS']:
|
|
|
|
from .groups import *
|
2024-04-06 06:27:43 +00:00
|
|
|
from .chats import *
|
2023-07-22 17:11:07 +00:00
|
|
|
|
|
|
|
if IS_LOCALHOST:
|
2023-09-06 17:08:24 +00:00
|
|
|
from sys import argv
|
2023-09-13 22:37:52 +00:00
|
|
|
if "cron" not in argv and "load_chat" not in argv:
|
2023-09-06 17:08:24 +00:00
|
|
|
from files.helpers.cron import cron_fn
|
|
|
|
print('Starting cron tasks!', flush=True)
|
2024-10-31 22:21:06 +00:00
|
|
|
gevent.spawn(cron_fn, True, False, False, False)
|