chore: moved Logger info to runThread function
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
1b2b35e10a
commit
e03e5bbd9e
1 changed files with 3 additions and 2 deletions
|
@ -51,6 +51,8 @@ object AvailabilityManager : IFeature {
|
||||||
// This runs during the cronjob.
|
// This runs during the cronjob.
|
||||||
@OptIn(PrivilegedIntent::class)
|
@OptIn(PrivilegedIntent::class)
|
||||||
suspend fun runThread() {
|
suspend fun runThread() {
|
||||||
|
Logger.out("Starting to update roles...")
|
||||||
|
|
||||||
// ChannelID, Data
|
// ChannelID, Data
|
||||||
val messageMap = mutableMapOf<Snowflake, TimePlanningMessagesData>()
|
val messageMap = mutableMapOf<Snowflake, TimePlanningMessagesData>()
|
||||||
// ChannelID, Data
|
// ChannelID, Data
|
||||||
|
@ -157,9 +159,8 @@ object AvailabilityManager : IFeature {
|
||||||
// Register the cronjob to run at 1AM UTC every day
|
// Register the cronjob to run at 1AM UTC every day
|
||||||
override suspend fun registerThread() {
|
override suspend fun registerThread() {
|
||||||
Logger.out("Adding availability scheduler...")
|
Logger.out("Adding availability scheduler...")
|
||||||
val scheduler = buildSchedule("0 0 1 * * * 0o *") // 0 0 4 * * * 0o 1w // 0o is UTC
|
val scheduler = buildSchedule("0 0 2 * * *") // 0 0 4 * * * 0o 1w // 0o is UTC
|
||||||
scheduler.doInfinity {
|
scheduler.doInfinity {
|
||||||
Logger.out("Starting to update roles...")
|
|
||||||
this.runThread()
|
this.runThread()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue