Module: Loader - Paultje52/BananenBase GitHub Wiki

The loader module lets you load commands and events.

Configuration

The loader module has two options.

  • Commands: String, the path of the commands folder
  • Events: String, the path of the events folder

The loader module only loads the commands or events when you give the option in the configuration

Example

In the main file

myBot.addModule("loader", {
  commands: "/cmds"
});
// Commands folder is "cmds"
// Doesn't load any events