Module: Start - Paultje52/BananenBase GitHub Wiki

The start module is the only module that get's loaded automatically in BananenBase It adds a function: BananenBaseClass.start(). When this function is called, and BananenBase is ready, the start module starts the Discord Bot with the token you provided in the BananenBase constructor.

It also handles the Starting logs, ready- and message event.

You can override the start function by making your own module, setting something to this.BananenBase.start and loading your module.

This has to be done as soon as the BananenBase class is constructed, and before the modules are being loaded. This makes it really easy to replace it.