Add Logger class
This commit is contained in:
@@ -2,20 +2,23 @@ package wtf.beatrice.hidekobot;
|
||||
|
||||
import net.dv8tion.jda.api.JDA;
|
||||
import net.dv8tion.jda.api.JDABuilder;
|
||||
import wtf.beatrice.hidekobot.utils.Logger;
|
||||
|
||||
import javax.security.auth.login.LoginException;
|
||||
|
||||
public class HidekoBot
|
||||
{
|
||||
private static Logger logger = new Logger(HidekoBot.class);
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
JDA jda = JDABuilder.createDefault("token").build();
|
||||
JDA jda = JDABuilder.createDefault("").build();
|
||||
} catch (LoginException e)
|
||||
{
|
||||
throw new RuntimeException(e);
|
||||
logger.log(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user