fix: StatusUpdater now starts after the bot is online
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
85602038e9
commit
2a34d15687
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue