LinkUp-Bot-Lib/src/Command.ts

16 lines
336 B
TypeScript
Raw Normal View History

2024-07-12 15:32:07 -04:00
import {Client} from "./Client"
import {TextMessage} from "./message/TextMessage";
export class Command {
constructor(public options: ICommandOption) {
}
handler(bot: Client, message: TextMessage, args: string[]) {}
}
export interface ICommandOption {
name: string,
description?: string,
aliases?: string[]
}