LOGGER.info("DiscordBot version "+(DiscordBot.class.getPackage().getImplementationVersion()!=null?DiscordBot.class.getPackage().getImplementationVersion():"UNKNOWN"));
LOGGER.severe("There is a problem with the Configuration: "+e.getMessage());
System.exit(9);
}catch(DiscordExceptione)
LOGGER.info("Hello World, starting up");
LOGGER.info("DiscordBot version "+(DiscordBot.class.getPackage().getImplementationVersion()!=null?DiscordBot.class.getPackage().getImplementationVersion():"UNKNOWN"));
// LOAD CONFIGURATION
try
{
Configuration.loadConfiguration("config.ini");// TODO: pass configuration file using commandline argument
}catch(IOExceptione)
{
LOGGER.severe("Could not load Configuration, reason: "+e.getMessage());
System.exit(10);
}
LOGGER.info("Logging in to Discord");
try
{
loginToDiscord();
}catch(ConfigurationExceptione)
{
LOGGER.severe("There is a problem with the Configuration: "+e.getMessage());