dgf-prototype/backend/src/index.js

21 lines
351 B
JavaScript
Raw Normal View History

2024-03-19 22:22:36 -05:00
require('dotenv').config();
2024-04-27 15:59:36 -05:00
const api = require('./api');
const matrixBot = require('./matrix-bot');
const contractListeners = require('./contract-listeners');
2024-04-29 17:00:56 -05:00
const {
ENABLE_API,
ENABLE_MATRIX,
} = process.env;
2024-04-27 15:59:36 -05:00
2024-04-29 17:00:56 -05:00
if (ENABLE_API !== 'false') {
api.start();
}
if (ENABLE_MATRIX !== 'false') {
2024-04-27 15:59:36 -05:00
matrixBot.start();
}
contractListeners.start();