Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Module: Loader

Paul edited this page Jul 17, 2020 · 2 revisions

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
Clone this wiki locally