xmpp-bot/lib/server.js
nioc 061725526b Version 2.2.0
Update dependencies (security fix)
Fix lint errors
2022-09-28 01:18:01 +02:00

23 lines
561 B
JavaScript

'use strict'
// create default logger
const logger = require('./logger')()
// get configuration
const config = require('./config')(logger)
// update logger with configuration
logger.updateConfig(config.logger)
// output application version
const { name, version } = require('./../package.json')
logger.info(`Start ${name} service - version ${version}`)
// load xmpp module
const xmpp = require('./xmpp')(logger, config)
// load webhook module
require('./webhook')(logger, config, xmpp)
// handle error and process ending
require('./error')(logger, xmpp)