CommandHandler
The command handler.
Constructors
new CommandHandler()
1new CommandHandler(dir: string): CommandHandlerCreates a new instance of the command handler.
Parameters
| Parameter | Type | Description |
|---|---|---|
dir | string | The directory of the commands. |
Returns
Source
twitchfy/packages/chatbot/src/structures/CommandHandler.ts:18
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
dir | readonly | string | The directory of the commands. |
Methods
load()
1load(): Promise<typeof ChatCommand[]>Load the commands.
Returns
Promise<typeof ChatCommand[]>
The loaded commands.
Source
twitchfy/packages/chatbot/src/structures/CommandHandler.ts:26