feat: made the status refresh every time it updates

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2023-10-05 11:52:42 +02:00
parent 84f0176ba4
commit b13c2e5f5f

View file

@ -25,7 +25,6 @@ import net.moonleay.lilJudd.Bot
import net.moonleay.lilJudd.data.api.Splatoon3Api
import net.moonleay.lilJudd.jobs.component.CronjobType
import net.moonleay.lilJudd.jobs.component.ICronjob
import net.moonleay.lilJudd.util.Logger
object StatusUpdater : ICronjob {
override val jobName: String
@ -43,7 +42,7 @@ object StatusUpdater : ICronjob {
private var index = 0
override suspend fun jobFunction() {
Logger.out("Updating status.")
refreshStatusList(System.currentTimeMillis())
Bot.bot.kordRef.editPresence {
this.status = PresenceStatus.DoNotDisturb
this.playing(statusList[index])