Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import 'reflect-metadata'; import { ContainerConstants } from '@medjaibot/framework/constants/ContainerConstants'; import { Logger } from '@medjaibot/framework/logger/Logger'; import { InitializationSide } from '@medjaibot/framework/plugin/InitializationSide'; import { Application } from './Application'; import Symbols from './constants/Symbols'; import applicationContainer from './container/container'; // Bind the initialization side applicationContainer.bind<InitializationSide>( ContainerConstants.SYSTEMS.PLUGIN.INITIALIZATIONSIDE, ).toConstantValue( InitializationSide.SERVER, ); try { const application = applicationContainer.get<Application>(Symbols.APP.APPLICATION); application.run(); } catch (error) { const logger = applicationContainer.get<Logger>(ContainerConstants.LOGGING.LOGGER); logger.error(`An error occured: ${error}`); } |