Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Nov 28, 2023
1 parent 49715e4 commit 8fc3498
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ dependencies {
application {
mainClassName = 'dev.inmo.plagubot.AppKt'
}

compileJava {
sourceCompatibility JavaVersion.VERSION_17.toString()
targetCompatibility JavaVersion.VERSION_17.toString()
}


compileKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ org.gradle.parallel=true
kotlin.js.generate.externals=true
kotlin.incremental=true

kotlin_version=1.8.22
plagubot_version=7.2.3
plugins_version=0.15.3
kotlin_version=1.9.21
plagubot_version=7.4.0
plugins_version=0.17.0

micro_utils_version=0.19.9
tgbotapi_version=9.2.2
serialization_version=1.5.1
micro_utils_version=0.20.15
tgbotapi_version=9.4.1
serialization_version=1.6.1

version=0.1.8
5 changes: 4 additions & 1 deletion src/main/kotlin/dev/inmo/plagubot/example/CustomPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CustomPlugin : Plugin, KoinComponent {

init {
KSLog.default = KSLog("ExampleBot").filtered { l, t, throwable ->
l > LogLevel.DEBUG && throwable !is CancellationException && throwable !is HttpRequestTimeoutException
l > LogLevel.VERBOSE && throwable !is CancellationException && throwable !is HttpRequestTimeoutException
}
}

Expand Down Expand Up @@ -99,6 +99,9 @@ class CustomPlugin : Plugin, KoinComponent {
onCommand(Regex(".*")) {
log.d { "Handled command: ${it.content}" }
}
onUnhandledCommand {
log.v { "Unknown command: ${it.content}" }
}
enableSettings(
koin.get(),
koin.get(),
Expand Down

0 comments on commit 8fc3498

Please sign in to comment.