Add playing state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-08-25 22:18:36 +02:00
parent d95338d833
commit d75aa7ad19

View File

@ -2,6 +2,7 @@ package wtf.beatrice.hidekobot;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.entities.Activity;
import wtf.beatrice.hidekobot.utils.Logger;
import javax.security.auth.login.LoginException;
@ -12,13 +13,20 @@ public class HidekoBot
public static void main(String[] args)
{
JDABuilder jdaBuilder;
JDA jda;
try
{
JDA jda = JDABuilder.createDefault("").build();
jdaBuilder = JDABuilder.createDefault("");
jdaBuilder.setActivity(Activity.playing("the piano"));
jda = jdaBuilder.build();
} catch (LoginException e)
{
logger.log(e.getMessage());
}
return;
}
}
}