dgf-prototype/backend/src/index.js

21 lines
317 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 topics = require('./topics');
2024-04-27 15:59:36 -05:00
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();
}
topics.start();