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