Class TeleightBots

java.lang.Object
org.teleight.teleightbots.TeleightBots

public final class TeleightBots extends Object
  • 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

      @NotNull public static @NotNull Scheduler 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

      @NotNull public static @NotNull BotManager 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

      @NotNull public static @NotNull ExceptionManager 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