diff options
author | martimavocado <39881008+martimavocado@users.noreply.github.com> | 2023-12-09 00:32:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-09 01:32:25 +0100 |
commit | f8257877d76a61d41b7fc69987c5ac3a77b77174 (patch) | |
tree | 9177a35b53cb8ae91cbd0370b3d907784b79e793 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 2f795bd9b4776c1777990e43436d139746bac0fb (diff) | |
download | skyhanni-f8257877d76a61d41b7fc69987c5ac3a77b77174.tar.gz skyhanni-f8257877d76a61d41b7fc69987c5ac3a77b77174.tar.bz2 skyhanni-f8257877d76a61d41b7fc69987c5ac3a77b77174.zip |
Feature: /shclearcontestdata (#777)
Added command /shclearcontestdata to Reset Jacob's Contest Data. #777
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt index d5d1881e2..2ff963828 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt @@ -46,7 +46,7 @@ object GardenNextJacobContest { private var dispatcher = Dispatchers.IO private var display = emptyList<Any>() private var simpleDisplay = emptyList<String>() - private var contests = mutableMapOf<SimpleTimeMark, FarmingContest>() + var contests = mutableMapOf<SimpleTimeMark, FarmingContest>() private var inCalendar = false private val patternDay = "§aDay (?<day>.*)".toPattern() @@ -61,9 +61,9 @@ object GardenNextJacobContest { private var loadedContestsYear = -1 private var nextContestsAvailableAt = -1L - private var lastFetchAttempted = 0L - private var isFetchingContests = false - private var fetchedFromElite = false + var lastFetchAttempted = 0L + var isFetchingContests = false + var fetchedFromElite = false private var isSendingContests = false @SubscribeEvent @@ -470,7 +470,7 @@ object GardenNextJacobContest { } } - private suspend fun fetchUpcomingContests() { + suspend fun fetchUpcomingContests() { try { val url = "https://api.elitebot.dev/contests/at/now" val result = withContext(dispatcher) { APIUtil.getJSONResponse(url) }.asJsonObject |