CommandHandler
The command handler.
Constructors
new CommandHandler()
Creates 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()
Load the commands.
Returns
Promise
<typeof ChatCommand
[]>
The loaded commands.
Source
twitchfy/packages/chatbot/src/structures/CommandHandler.ts:26