Module watamebot

Class WatameBot

java.lang.Object
net.foxgenesis.watame.WatameBot

public class WatameBot extends Object
Class containing WatameBot implementation
Author:
Ashley
  • Field Details

    • logger

      public static final org.slf4j.Logger logger
      General purpose logger
  • Method Details

    • getInstance

      public static WatameBot getInstance()
      Get the singleton instance of WatameBot.

      If the instance has not been created yet, one will be upon calling this method.

      Returns:
      Instance of WatameBot
    • isConnectedToDiscord

      public boolean isConnectedToDiscord()
      Check if this instances JDA is built and connected to Discord.
      Returns:
      JDA instance is built and its current status is JDA.Status.CONNECTED.
    • getDatabaseManager

      public IDatabaseManager getDatabaseManager()
      NEED_JAVADOC
      Returns:
    • getDataForGuild

      @Deprecated(forRemoval=true) public IGuildData getDataForGuild(net.dv8tion.jda.api.entities.Guild guild)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPropertyProvider

      public IPropertyProvider<String,net.dv8tion.jda.api.entities.Guild,IGuildPropertyMapping> getPropertyProvider()
      Get the property provider instance.
      Returns:
      The current IPropertyProvider instance
    • getGuildLoggingChannel

      public IPropertyField<String,net.dv8tion.jda.api.entities.Guild,IGuildPropertyMapping> getGuildLoggingChannel()
      Get the logging channel property for a guild.
      Returns:
      Returns the IPropertyField pointing to the log channel
    • getJDA

      public net.dv8tion.jda.api.JDA getJDA()
      NEED_JAVADOC
      Returns:
    • getState

      public WatameBot.State getState()
      Get the current state of the bot.
      Returns:
      Returns the WatameBot.State of the bot
      See Also: