sxcybot

Discord bot for OSRS based channels
git clone git://git.wimdupont.com/sxcybot.git
Log | Files | Refs | README | LICENSE

commit ee0011eab6d19e4b76dddbba46ff63b3a8e533bc
parent c910c8644ad33f8e6ea6b2fc19d304bb9b103dfe
Author: Wim Dupont <wim@wimdupont.com>
Date:   Fri, 25 Aug 2023 12:20:30 +0200

update hiscores and upgrade

Diffstat:
Mpom.xml | 2+-
Msrc/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java | 4++--
Asrc/main/resources/db/migration/V1_16__hiscore_update.sql | 1+
Msrc/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java | 4++--
4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml @@ -5,7 +5,7 @@ <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> - <version>3.1.2</version> + <version>3.1.3</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.wimdupont</groupId> diff --git a/src/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java b/src/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java @@ -30,8 +30,8 @@ public class HiScoreClient { private static final int STATS_START = 0; private static final int STATS_END = 23; - private static final int BOSS_START = 40; - private static final int BOSS_END = 97; + private static final int BOSS_START = 41; + private static final int BOSS_END = 98; private final OsrsHiscoreBossService osrsHiscoreBossService; private final OsrsHiscoreStatService osrsHiscoreStatService; diff --git a/src/main/resources/db/migration/V1_16__hiscore_update.sql b/src/main/resources/db/migration/V1_16__hiscore_update.sql @@ -0,0 +1 @@ +UPDATE osrs_hiscore_boss SET order_value = order_value+1; diff --git a/src/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java b/src/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java @@ -80,11 +80,11 @@ class HiScoreClientTest { String playerName = "Zxxy"; List<OsrsHiscoreBoss> hiscoreBosses = List.of(OsrsHiscoreBoss.Builder.newBuilder() .name("KBD") - .orderValue(65) + .orderValue(66) .build(), OsrsHiscoreBoss.Builder.newBuilder() .name("Wintertodt") - .orderValue(95) + .orderValue(96) .build() );