@twitchchatjs/handlers
Version:
Implement of twitch-chat.js that creates handlers
11 lines (9 loc) • 300 B
Markdown
# Creating handlers
```js
const { Command, Event } = require('@twitchchatjs/handlers');
Client.commands = new Twitch.Collection();
Client.aliases = new Twitch.Collection();
new Command(Client, path).load()
new Event(Client, path).load()
```
> options: `new Command(Client, path, {subFolder: true})`