Class JavaBotMain

java.lang.Object
dev.jacrispys.JavaBot.JavaBotMain

public class JavaBotMain extends Object
The core class that establishes a connection with JDA and discord.
Also initializes all other utility/necessary classes.
  • Field Details

    • audioManager

      public static com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager audioManager
    • VERSION

      public static String VERSION
  • Constructor Details

    • JavaBotMain

      public JavaBotMain()
  • Method Details

    • main

      public static void main(String[] args) throws ConfigurationException, IOException
      The main method of the application.

      Starts by initializing ENV login data via SecretData.initLoginInfo()
      Then creates a connection to JDA through the JDABuilder
      It next registers Audio source managers for multi-platform song searching through AudioSourceManagers
      Finally we add all event listeners and register a Javalin server to handle API requests (WIP)

      Throws:
      ConfigurationException - if any of the token fields are left blank in the config file
      IOException - if any errors occur whilst obtaining data from the YAML file