Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
fix(dlmodel): init model on plugin load
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Oct 3, 2024
1 parent 11182d1 commit 3226efb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/ltd/guimc/lgzbot/PluginMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlinx.coroutines.runInterruptible
import ltd.guimc.dlm.DLModel
import ltd.guimc.lgzbot.command.*
import ltd.guimc.lgzbot.files.Config
import ltd.guimc.lgzbot.files.GithubSubConfig
Expand Down Expand Up @@ -155,6 +156,7 @@ object PluginMain : KotlinPlugin(
webHookService.start()
logger.info("正在初始化 LL4J")
LL4JUtils.init()
DLModel.init()
thread { LL4JUtils.downloadModel() }
logger.info("$name v$version 加载好了喵")
}
Expand Down

0 comments on commit 3226efb

Please sign in to comment.