18 lines
628 B
Python
18 lines
628 B
Python
from datetime import datetime
|
|
|
|
from cpl_core.application.application_extension_abc import ApplicationExtensionABC
|
|
from cpl_core.configuration import ConfigurationABC
|
|
from cpl_core.dependency_injection import ServiceProviderABC
|
|
from cpl_core.logging import LoggerABC
|
|
|
|
|
|
class BootLogExtension(ApplicationExtensionABC):
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
async def run(self, config: ConfigurationABC, services: ServiceProviderABC):
|
|
logger: LoggerABC = services.get_service(LoggerABC)
|
|
logger.debug(__name__, 'BootLog extension started')
|
|
config.add_configuration('Bot_StartTime', str(datetime.now()))
|