From f8257877d76a61d41b7fc69987c5ac3a77b77174 Mon Sep 17 00:00:00 2001 From: martimavocado <39881008+martimavocado@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:32:25 +0000 Subject: Feature: /shclearcontestdata (#777) Added command /shclearcontestdata to Reset Jacob's Contest Data. #777 --- .../skyhanni/features/garden/GardenNextJacobContest.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') 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() private var simpleDisplay = emptyList() - private var contests = mutableMapOf() + var contests = mutableMapOf() private var inCalendar = false private val patternDay = "§aDay (?.*)".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 -- cgit