This repository was archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Module: Start
Paul edited this page Jul 17, 2020
·
4 revisions
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.
©BananenBot 2017-2020 - all rights saved