Wipe the non-functional code
This commit is contained in:
parent
fec987114f
commit
4dc25492e5
23 changed files with 1 additions and 1435 deletions
50
src/main.ts
50
src/main.ts
|
|
@ -1,50 +0,0 @@
|
|||
//
|
||||
// main.ts
|
||||
//
|
||||
// Written by: Oliver Akins (2019/11/06 - 2021/12/02)
|
||||
//
|
||||
|
||||
|
||||
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";
|
||||
|
||||
|
||||
export function change_index(value: number) {
|
||||
question_index = value;
|
||||
};
|
||||
export function reset_users() {
|
||||
users = {};
|
||||
};
|
||||
|
||||
export var user_right_count: {[index: string]: number} = {};
|
||||
export var users: {[index: string]: string} = {};
|
||||
export let question_index: number = -1;
|
||||
|
||||
export const questions: string[] = []
|
||||
|
||||
export var 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();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue