@mengkodingan/ckptw
Version:
Create powerful WhatsApp bots easily
29 lines • 887 B
TypeScript
import { Consolefy } from "@mengkodingan/consolefy";
export declare class CommandHandler {
_bot: any;
_path: string;
consolefy?: Consolefy;
/**
* Create a new command handler instance
*
* ```ts
* import { CommandHandler } from "@mengkodingan/ckptw";
* import path from "path";
*
* const cmd = new CommandHandler(bot, path.resolve() + '/path/to/dir');
* cmd.load();
*
* ```
*
* @param bot The bot instance
* @param path A string that represent a path to commands directory. Recomended using `path` library.
*
* ```ts
* import path from "path";
* const cmd = new CommandHandler(bot, path.resolve() + '/path/to/dir');
* ```
*/
constructor(bot: any, path: string);
load(isShowLog?: boolean): void;
}
//# sourceMappingURL=CommandHandler.d.ts.map