fix: StatusUpdater now starts after the bot is online

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2023-10-05 15:09:30 +02:00
parent 85602038e9
commit 2a34d15687

View file

@ -163,6 +163,8 @@ object Bot {
bot.kordRef.on<ReadyEvent> {
AvailabilityManager.runThread() // Update Availabilities
MatchManager.update() // Update Matches
// Make the bot update the status every 6 seconds
JobManager.addJob(StatusUpdater)
}
// Update the Splatoon 3 api data and make sure it stays up-to-date
@ -176,9 +178,6 @@ object Bot {
//JobManager.addJob(Splatoon3ApiFestivalAndCoopUpdateScheduler)
//JobManager.addJob(Splatoon3ApiSplatnetGearUpdateScheduler)
// Make the bot update the status every 10 seconds
JobManager.addJob(StatusUpdater)
//Start the bot
bot.start()
}