mirror of https://gitlab.com/litecord/litecord.git
run.py: fix other peace of mind things
This commit is contained in:
parent
d95b6adb16
commit
a69a2423de
12
run.py
12
run.py
|
|
@ -218,18 +218,18 @@ async def init_app_db(app_):
|
|||
def init_app_managers(app_):
|
||||
"""Initialize singleton classes."""
|
||||
app_.loop = asyncio.get_event_loop()
|
||||
app_.ratelimiter = RatelimitManager(app.config.get('_testing'))
|
||||
app_.ratelimiter = RatelimitManager(app_.config.get('_testing'))
|
||||
app_.state_manager = StateManager()
|
||||
|
||||
app_.storage = Storage(app)
|
||||
app_.user_storage = UserStorage(app.storage)
|
||||
app_.storage = Storage(app_)
|
||||
app_.user_storage = UserStorage(app_.storage)
|
||||
|
||||
app_.icons = IconManager(app)
|
||||
app_.icons = IconManager(app_)
|
||||
|
||||
app_.dispatcher = EventDispatcher(app)
|
||||
app_.dispatcher = EventDispatcher(app_)
|
||||
app_.presence = PresenceManager(app_)
|
||||
|
||||
app_.storage.presence = app.presence
|
||||
app_.storage.presence = app_.presence
|
||||
|
||||
|
||||
async def api_index(app_):
|
||||
|
|
|
|||
Loading…
Reference in New Issue