2022-08-25 21:51:00 +02:00
|
|
|
package wtf.beatrice.hidekobot;
|
|
|
|
|
|
|
|
import net.dv8tion.jda.api.JDA;
|
|
|
|
import net.dv8tion.jda.api.JDABuilder;
|
2022-08-25 22:18:36 +02:00
|
|
|
import net.dv8tion.jda.api.entities.Activity;
|
2022-08-25 22:13:39 +02:00
|
|
|
import wtf.beatrice.hidekobot.utils.Logger;
|
2022-08-25 21:51:00 +02:00
|
|
|
|
|
|
|
import javax.security.auth.login.LoginException;
|
|
|
|
|
|
|
|
public class HidekoBot
|
|
|
|
{
|
2022-08-25 22:13:39 +02:00
|
|
|
private static Logger logger = new Logger(HidekoBot.class);
|
2022-08-25 21:51:00 +02:00
|
|
|
|
|
|
|
public static void main(String[] args)
|
|
|
|
{
|
2022-08-25 22:18:36 +02:00
|
|
|
JDABuilder jdaBuilder;
|
|
|
|
JDA jda;
|
|
|
|
|
2022-08-25 21:51:00 +02:00
|
|
|
try
|
|
|
|
{
|
2022-08-25 22:18:36 +02:00
|
|
|
jdaBuilder = JDABuilder.createDefault("");
|
|
|
|
jdaBuilder.setActivity(Activity.playing("the piano"));
|
|
|
|
jda = jdaBuilder.build();
|
2022-08-25 21:51:00 +02:00
|
|
|
} catch (LoginException e)
|
|
|
|
{
|
2022-08-25 22:13:39 +02:00
|
|
|
logger.log(e.getMessage());
|
2022-08-25 22:18:36 +02:00
|
|
|
return;
|
2022-08-25 21:51:00 +02:00
|
|
|
}
|
2022-08-25 22:18:36 +02:00
|
|
|
|
2022-08-25 21:51:00 +02:00
|
|
|
}
|
2022-08-25 22:13:39 +02:00
|
|
|
|
2022-08-25 21:51:00 +02:00
|
|
|
}
|