xmpp-bot/lib/server.js

20 lines
413 B
JavaScript
Raw Normal View History

2019-10-13 03:38:25 +02:00
'use strict'
// create default logger
let logger = require('./logger')()
// get configuration
let config = require('./config')(logger)
// update logger with configuration
logger.updateConfig(config.logger)
// load xmpp module
const xmpp = require('./xmpp')(logger, config)
// load webhook module
require('./webhook')(logger, config, xmpp)
2019-10-13 03:38:25 +02:00
// handle error and process ending
require('./error')(logger, xmpp)