pingex
/
DiscordBot
Archived
1
0
Fork 0

Now shows version on startup.

master
Pingex aka Raphaël 9 years ago
parent 1e0a976c9e
commit 0df7e7b4f0

@ -14,7 +14,7 @@ import java.util.logging.Logger;
* @version 0.1-dev
* @author Raphael "Pingex" NAAS
*/
public class DiscordBot
class DiscordBot
{
private static final Logger LOGGER = Logger.getLogger(DiscordBot.class.getName());
@ -85,7 +85,11 @@ public class DiscordBot
*/
public static void main(String[] args)
{
// SET UP
System.setProperty("java.util.logging.SimpleFormatter.format", "%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS [%2$s/%4$s] %5$s%6$s%n");
LOGGER.info("Hello World, starting up");
LOGGER.info("DiscordBot version " + (DiscordBot.class.getPackage().getImplementationVersion() != null ? DiscordBot.class.getPackage().getImplementationVersion() : "UNKNOWN"));
// LOAD CONFIGURATION
try