Package org.teleight.teleightbots
Class TeleightBots
java.lang.Object
org.teleight.teleightbots.TeleightBots
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BotManagerReturns the BotManager associated with the TeleightBots process.static @NotNull ExceptionManagerReturns the exception manager used by the TeleightBots API.static @NotNull SchedulerReturns the Scheduler associated with the TeleightBots process.static voidStops the TeleightBots API.
-
Constructor Details
-
TeleightBots
public TeleightBots()
-
-
Method Details
-
stopCleanly
public static void stopCleanly()Stops the TeleightBots API.This method should be called when the TeleightBots API is no longer needed. It stops the TeleightBots API and releases all resources.
-
getScheduler
Returns the Scheduler associated with the TeleightBots process.The Scheduler is responsible for scheduling tasks to be executed at a later time or at regular intervals.
- Returns:
- The Scheduler associated with the TeleightBots process.
-
getBotManager
Returns the BotManager associated with the TeleightBots process.The BotManager is responsible for managing bots, including registering new bots and getting existing bots.
- Returns:
- The BotManager associated with the TeleightBots process.
-
getExceptionManager
Returns the exception manager used by the TeleightBots API.The exception manager is responsible for handling exceptions thrown by the TeleightBots API. It is also responsible for logging exceptions and notifying the user about them.
- Returns:
- the exception manager
-