import {help} from "./commands/help"; import {commandHandler} from "./commands/command_handler"; export class Pops { private command: string; private params: string[]; constructor({command, params}) { this.command = command; this.params = params; } public run(): void { if (!this.command) { help(); } else { commandHandler({ command: this.command, params: this.params }); } } }