From 7921cca38e189edcac7b7fa2075c6e9c7c61d8be Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 28 Jul 2021 15:28:08 +0200 Subject: [PATCH] Add DiscordBot --- .../bungeecore/bot/SteamwarDiscordBot.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/de/steamwar/bungeecore/bot/SteamwarDiscordBot.java b/src/de/steamwar/bungeecore/bot/SteamwarDiscordBot.java index 102e578..89f0286 100644 --- a/src/de/steamwar/bungeecore/bot/SteamwarDiscordBot.java +++ b/src/de/steamwar/bungeecore/bot/SteamwarDiscordBot.java @@ -27,11 +27,9 @@ import lombok.Getter; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; import net.dv8tion.jda.api.OnlineStatus; -import net.dv8tion.jda.api.entities.Activity; import net.dv8tion.jda.api.entities.ActivityFlag; import net.dv8tion.jda.api.entities.RichPresence; import net.dv8tion.jda.api.hooks.ListenerAdapter; -import net.dv8tion.jda.internal.entities.RichPresenceImpl; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -55,13 +53,13 @@ public class SteamwarDiscordBot { builder.setActivity(new RichPresence() { @Override public long getApplicationIdLong() { - return 0; + return 869611389818400779L; } @NotNull @Override public String getApplicationId() { - return "SteamWar"; + return "869611389818400779"; } @Nullable @@ -89,13 +87,13 @@ public class SteamwarDiscordBot { @Nullable @Override public String getState() { - return "SteamWar"; + return "Steamwar.de"; } @Nullable @Override public String getDetails() { - return "SteamWar"; + return "Spielt auf Steamwar.de"; } @Nullable @@ -124,7 +122,7 @@ public class SteamwarDiscordBot { @Nullable @Override public RichPresence asRichPresence() { - return null; + return this; } @NotNull @@ -142,7 +140,7 @@ public class SteamwarDiscordBot { @NotNull @Override public ActivityType getType() { - return null; + return ActivityType.COMPETING; } @Nullable