commit 871018110252f76af75d524f72c77a7f70ffd620
parent 330c5f7bdbefec69141e3681d09b161892512e4b
Author: WimDupont <WimDupont@users.noreply.gitlab.com>
Date: Mon, 3 Jan 2022 18:07:20 +0100
hiscore url update
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/java/com/sxcy/sxcybot/client/HiScoreClient.java b/src/main/java/com/sxcy/sxcybot/client/HiScoreClient.java
@@ -27,7 +27,7 @@ import java.util.stream.Collectors;
@Component
@RequiredArgsConstructor
public class HiScoreClient {
- private static final String URL = "https://services.runescape.com/m=hiscore_oldschool/index_lite.ws?player=%s";
+ private static final String URL = "https://secure.runescape.com/m=hiscore_oldschool/index_lite.ws?player=%s";
private static final int STATS_START = 0;
private static final int STATS_END = 23;
diff --git a/src/main/java/com/sxcy/sxcybot/services/PvMRoleResolver.java b/src/main/java/com/sxcy/sxcybot/services/PvMRoleResolver.java
@@ -11,6 +11,7 @@ import com.sxcy.sxcybot.services.guild.pvmrole.PvmRoleUserService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
+import lombok.extern.slf4j.Slf4j;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.PrivateChannel;
import org.springframework.scheduling.annotation.Scheduled;
@@ -25,6 +26,7 @@ import java.util.Map;
import static com.google.common.collect.Lists.newArrayList;
+@Slf4j
@Component
@RequiredArgsConstructor
public class PvMRoleResolver {
@@ -43,6 +45,7 @@ public class PvMRoleResolver {
@Scheduled(cron = "${pvm.role.schedule}")
@SuppressWarnings("unused")
public void resolvePvMRoles() {
+ log.info("Running scheduled pvmRoleResolver.");
resolvePvMRoles(true, null);
}