2024-03-19 22:22:36 -05:00
|
|
|
require('dotenv').config();
|
2024-04-23 15:57:15 -05:00
|
|
|
|
2024-04-27 15:59:36 -05:00
|
|
|
const api = require('./api');
|
|
|
|
const matrixBot = require('./matrix-bot');
|
2024-04-30 15:56:43 -05:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2024-04-30 15:56:43 -05:00
|
|
|
topics.start();
|