This commit is contained in:
Braydon 2023-12-02 00:22:37 -05:00
parent e391d3e48e
commit 3e16f212da
2 changed files with 6 additions and 3 deletions

@ -14,7 +14,7 @@ COPY src ./src
RUN mvn clean package -T12
# Stage 2: Running
FROM openjdk:17.0.1-jdk-slim
FROM openjdk:17.0.2-jdk-slim
# Set the work dir inside the container
WORKDIR /usr/local/app

@ -157,8 +157,11 @@ public final class DiscordService {
log.info("Logging in..."); // Log that we're logging in
System.out.println("Step 1");
JDA jda = JDABuilder.createDefault(token)
// .setActivity(Activity.watching("your licenses"))
// .addEventListeners(new EventHandler())
.enableIntents(
GatewayIntent.GUILD_MEMBERS
).setStatus(OnlineStatus.DO_NOT_DISTURB)
.setActivity(Activity.watching("your licenses"))
.addEventListeners(new EventHandler())
.build();
System.out.println("step 2");
try {