This repository has been archived on 2021-01-16. You can view files and clone it, but cannot push or open issues/pull-requests.
2020-06-26 04:07:37 -05:00
|
|
|
import {init as initRTMP} from "./server";
|
|
|
|
import {init as initDB} from "./database";
|
|
|
|
import {init as initHTTP} from "./http";
|
|
|
|
import {init as clean} from "./cleanup";
|
|
|
|
import {init as initChat} from "./chat";
|
2019-12-21 08:59:35 -06:00
|
|
|
import { config } from "./config";
|
|
|
|
|
|
|
|
async function run() {
|
2020-06-26 04:07:37 -05:00
|
|
|
await initDB();
|
2020-10-16 21:31:23 -05:00
|
|
|
await clean();
|
2020-06-26 04:07:37 -05:00
|
|
|
await initHTTP();
|
|
|
|
await initRTMP();
|
|
|
|
await initChat();
|
2019-12-21 08:59:35 -06:00
|
|
|
console.log(`Satyr v${config['satyr']['version']} ready`);
|
|
|
|
}
|
|
|
|
run();
|
|
|
|
export { run };
|