From d9b2452b1790c32257e34df62fd01f73e5fb1e74 Mon Sep 17 00:00:00 2001 From: BrokenFire Date: Tue, 12 Dec 2017 20:08:03 +0100 Subject: [PATCH] * --- Procfile | 2 +- src/main/java/net/Broken/BotListener.java | 1 + src/main/resources/application.properties | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Procfile b/Procfile index 7323689..5949ebc 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: java -Dlog4j.configurationFile=/app/Heroku/log4j2.xml -jar /app/build/libs/DiscordBot-0.1.0.jar --server.port=$PORT -t $TOKEN +web: java -Dlog4j.configurationFile=/app/Heroku/log4j2.xml -jar /app/build/libs/DiscordBot-0.1.0.jar -t $TOKEN diff --git a/src/main/java/net/Broken/BotListener.java b/src/main/java/net/Broken/BotListener.java index c74caad..a42eb64 100644 --- a/src/main/java/net/Broken/BotListener.java +++ b/src/main/java/net/Broken/BotListener.java @@ -23,6 +23,7 @@ import net.dv8tion.jda.core.managers.GuildManager; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.List; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 95f30b9..47aa088 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,2 +1,2 @@ -#server.port={$PORT} -name = "test" +server.port={$PORT} +#name = "test"