Skip to content

Commit

Permalink
Update coroutine timeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
bombies committed Sep 15, 2023
1 parent 7f81940 commit 16031c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/main/main/Robertify.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import org.quartz.SchedulerException
import org.quartz.impl.StdSchedulerFactory
import org.yaml.snakeyaml.reader.ReaderException
import java.util.*
import kotlin.time.Duration.Companion.minutes
import kotlin.time.Duration.Companion.seconds

object Robertify {
Expand Down Expand Up @@ -113,7 +114,7 @@ object Robertify {
val (dispatcher, supervisor, handler) = GeneralUtils.generateHandleCoroutineContextComponents()
val context = dispatcher + supervisor + handler
val scope = CoroutineScope(context)
coroutineEventManager = CoroutineEventManager(scope, 30.seconds)
coroutineEventManager = CoroutineEventManager(scope, 3.minutes)
coroutineEventManager.handleShardReady()
coroutineEventManager.handleGuildReady()
coroutineEventManager.listener<ShutdownEvent> {
Expand Down

0 comments on commit 16031c8

Please sign in to comment.