Setup Events Path
To setup commands, you must provide the eventsPath
property when creating a new instance of CommandHandler
.
index.js
Different Events Folder
As with the commands path, your eventsPath
can lead to a folder with any name anywhere. For example, if I have my events saved inside a folder called bot-events
, I would define eventsPath
like this.
Last updated