mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-12-16 07:00:43 +00:00
feat: 可通过配置文件设置用于查找扩展包的 Maven 仓库.
使用 Maven 扩展包搜素器将不再限制仓库, 可通过配置文件添加其他仓库.
This commit is contained in:
@ -30,11 +30,15 @@ internal class ScalaBot(
|
||||
db: DBContext,
|
||||
options: DefaultBotOptions,
|
||||
val extensions: Set<Artifact>,
|
||||
extensionFinders: Set<ExtensionPackageFinder>,
|
||||
disableBuiltInAbility: Boolean
|
||||
) :
|
||||
AbilityBot(token, name, db, if (disableBuiltInAbility) BareboneToggle() else DefaultToggle(), options) {
|
||||
|
||||
private val extensionLoader = ExtensionLoader(this)
|
||||
private val extensionLoader = ExtensionLoader(
|
||||
bot = this,
|
||||
extensionFinders = extensionFinders
|
||||
)
|
||||
|
||||
init {
|
||||
val extensionEntries = extensionLoader.getExtensions()
|
||||
|
||||
Reference in New Issue
Block a user