feat: made the status refresh every time it updates
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
e02117fa36
commit
390cd2a345
1 changed files with 1 additions and 2 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue