command.d.ts 646 B

12345678910
  1. declare function parseCmd(message: string): {
  2. cmd: string;
  3. args: string[];
  4. };
  5. declare function sub(chat: IChat, args: string[], reply: (msg: string) => any, lock: ILock, lockfile: string): void;
  6. declare function unsub(chat: IChat, args: string[], reply: (msg: string) => any, lock: ILock, lockfile: string): void;
  7. declare function list(chat: IChat, _: string[], reply: (msg: string) => any, lock: ILock): void;
  8. declare function view(chat: IChat, args: string[], reply: (msg: string) => any): void;
  9. declare function query(chat: IChat, args: string[], reply: (msg: string) => any): void;
  10. export { parseCmd, sub, list, unsub, view, query };