Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
demidko committed Sep 22, 2024
1 parent c96ad09 commit b186a97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.sksamuel.hoplite.addEnvironmentSource
import java.time.Duration
import java.time.Duration.ofMinutes
import java.time.ZoneId
import kotlin.time.toKotlinDuration

open class ApplicationFactory {
data class Config(
Expand All @@ -25,7 +26,8 @@ open class ApplicationFactory {
}

init {
println(config.restrictionsDuration)
val duration = config.restrictionsDuration.toKotlinDuration().toString()
println("Restrictions duration: $duration")
}

open val restrictions = ChatPermissions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import java.lang.Thread.startVirtualThread
import java.time.Duration
import java.time.Duration.ofSeconds

fun main() {
fun main(args: Array<String>) {
val glockBot = ApplicationFactory().glockBot

glockBot.startPollingAsync()
Expand Down

0 comments on commit b186a97

Please sign in to comment.