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 89e6142ebf
commit daf3ed0c21
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -163,6 +163,8 @@ object Bot {
bot.kordRef.on<ReadyEvent> { bot.kordRef.on<ReadyEvent> {
AvailabilityManager.runThread() // Update Availabilities AvailabilityManager.runThread() // Update Availabilities
MatchManager.update() // Update Matches 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 // 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(Splatoon3ApiFestivalAndCoopUpdateScheduler)
//JobManager.addJob(Splatoon3ApiSplatnetGearUpdateScheduler) //JobManager.addJob(Splatoon3ApiSplatnetGearUpdateScheduler)
// Make the bot update the status every 10 seconds
JobManager.addJob(StatusUpdater)
//Start the bot //Start the bot
bot.start() bot.start()
} }