gateway/modules/features/featuresLifecycle.py
2025-10-15 18:23:03 +02:00

26 lines
No EOL
763 B
Python

import logging
from modules.interfaces.interfaceDbAppObjects import getRootInterface
logger = logging.getLogger(__name__)
async def start() -> None:
""" Start feature triggers and background managers """
rootInterface = getRootInterface()
eventUser = rootInterface.getUserByUsername("event")
# Feature SyncDelta
from modules.features.syncDelta import mainSyncDelta
mainSyncDelta.startSyncManager(eventUser)
# Feature ChatBot
from modules.features.chatBot.mainChatBot import start as startChatBot
await startChatBot()
async def stop() -> None:
""" Stop feature triggers and background managers """
# Feature ChatBot
from modules.features.chatBot.mainChatBot import stop as stopChatBot
await stopChatBot()