mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
follow period message handler end.
This commit is contained in:
parent
557600f812
commit
8af0c3ac33
@ -1,5 +1,3 @@
|
|||||||
import org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
val kotlinVersion = "2.0.0"
|
val kotlinVersion = "2.0.0"
|
||||||
|
|
||||||
@ -25,32 +23,6 @@ application {
|
|||||||
mainClass.set("${"${project.group}.${project.name}".lowercase()}.MainKt")
|
mainClass.set("${"${project.group}.${project.name}".lowercase()}.MainKt")
|
||||||
}
|
}
|
||||||
|
|
||||||
graalvmNative {
|
|
||||||
agent {
|
|
||||||
trackReflectionMetadata.set(true)
|
|
||||||
|
|
||||||
metadataCopy {
|
|
||||||
outputDirectories.add("src/main/resources/META-INF/native-image")
|
|
||||||
mergeWithExisting.set(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
binaries {
|
|
||||||
binaries.all {
|
|
||||||
resources.autodetect()
|
|
||||||
}
|
|
||||||
named("main") {
|
|
||||||
useFatJar.set(true)
|
|
||||||
sharedLibrary.set(false)
|
|
||||||
buildArgs.add("-march=compatibility")
|
|
||||||
buildArgs.add("--enable-http")
|
|
||||||
buildArgs.add("--enable-https")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
metadataRepository {
|
|
||||||
enabled.set(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
@ -61,7 +33,7 @@ dependencies {
|
|||||||
exclude(module = "opus-java")
|
exclude(module = "opus-java")
|
||||||
}
|
}
|
||||||
// https://mvnrepository.com/artifact/io.github.R2turnTrue/chzzk4j
|
// https://mvnrepository.com/artifact/io.github.R2turnTrue/chzzk4j
|
||||||
implementation("io.github.R2turnTrue:chzzk4j:0.0.7")
|
implementation("io.github.R2turnTrue:chzzk4j:0.0.8")
|
||||||
|
|
||||||
implementation("ch.qos.logback:logback-classic:1.4.14")
|
implementation("ch.qos.logback:logback-classic:1.4.14")
|
||||||
|
|
||||||
@ -106,15 +78,3 @@ tasks.withType<Jar> {
|
|||||||
|
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<JavaExec>("generateReflectConfig") {
|
|
||||||
group = "build"
|
|
||||||
description = "Generate GraalVM reflection configuration using agent"
|
|
||||||
mainClass = application.mainClass
|
|
||||||
|
|
||||||
classpath = sourceSets["main"].runtimeClasspath
|
|
||||||
|
|
||||||
jvmArgs(
|
|
||||||
"-agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image"
|
|
||||||
)
|
|
||||||
}
|
|
@ -89,7 +89,7 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
result = followPattern.replace(result) {
|
result = followPattern.replace(result) {
|
||||||
val following = getFollowDate("", msg.userId)
|
val following = getFollowDate(listener.chatId, msg.userId)
|
||||||
val dateString: String? = following.content.streamingProperty["followDate"]
|
val dateString: String? = following.content.streamingProperty["followDate"]
|
||||||
val today = LocalDate.now()
|
val today = LocalDate.now()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user