Initial commit

This commit is contained in:
Oliver 2021-12-02 13:13:17 -06:00
commit f8910e4f30
28 changed files with 3111 additions and 0 deletions

37
src/main.ts Normal file
View file

@ -0,0 +1,37 @@
//
// main.ts
//
// Written by: Oliver Akins (2019/11/06 - 2020/07/21)
//
import { run_discord } from "./services/discord_handler";
import { run_twitch } from "./services/twitch_handler";
import { run_tests } from "./services/test_runner";
import { LOAD_CONFIG } from "./utils/Config";
let config = LOAD_CONFIG();
let args = process.argv.slice(2);
// Not enough arguments
if (args.length < 1) {
console.error(`Too few arguments.`);
process.exit(1);
}
if (args.includes("--test")) {
process.exit(run_tests(args.includes("--silent")));
};
if (args.includes("--twitch")) {
run_twitch();
};
if (args.includes("--discord")) {
run_discord();
};