Package dev.jacrispys.JavaBot
Class JavaBotMain
java.lang.Object
dev.jacrispys.JavaBot.JavaBotMain
The core class that establishes a connection with
Also initializes all other utility/necessary classes.
JDA
and discord.
Also initializes all other utility/necessary classes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager
static String
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
audioManager
public static com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager audioManager -
VERSION
-
-
Constructor Details
-
JavaBotMain
public JavaBotMain()
-
-
Method Details
-
main
The main method of the application.
Starts by initializing ENV login data viaSecretData.initLoginInfo()
Then creates a connection toJDA
through theJDABuilder
It next registers Audio source managers for multi-platform song searching throughAudioSourceManagers
Finally we add all event listeners and register aJavalin
server to handle API requests (WIP)
- Throws:
ConfigurationException
- if any of the token fields are left blank in the config fileIOException
- if any errors occur whilst obtaining data from the YAML file
-