mirror of
https://github.com/nioc/xmpp-bot.git
synced 2024-11-10 03:56:48 +01:00
061725526b
Update dependencies (security fix) Fix lint errors
23 lines
561 B
JavaScript
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)
|