Skip to content

Commit

Permalink
build: 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Apr 2, 2024
1 parent 533a680 commit 4d3ea10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.cssxsh"
version = "1.7.3"
version = "1.8.0"

repositories {
mavenLocal()
Expand Down
12 changes: 3 additions & 9 deletions src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliHelperPlugin.kt
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
package xyz.cssxsh.mirai.bilibili

import kotlinx.coroutines.*
import net.mamoe.mirai.console.*
import net.mamoe.mirai.console.command.*
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.register
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.unregister
import net.mamoe.mirai.console.data.*
import net.mamoe.mirai.console.extension.*
import net.mamoe.mirai.console.plugin.jvm.*
import net.mamoe.mirai.console.plugin.*
import net.mamoe.mirai.console.util.*
import net.mamoe.mirai.event.*
import net.mamoe.mirai.utils.*
import xyz.cssxsh.bilibili.api.*
import xyz.cssxsh.mirai.bilibili.data.*

object BiliHelperPlugin : KotlinPlugin(
JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.7.3") {
@PublishedApi
internal object BiliHelperPlugin : KotlinPlugin(
JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.8.0") {
name("bilibili-helper")
author("cssxsh")

Expand All @@ -41,10 +39,6 @@ object BiliHelperPlugin : KotlinPlugin(
private val listeners: List<ListenerHost> by services()

override fun onEnable() {
// XXX: mirai console version check
check(SemVersion.parseRangeRequirement(">= 2.12.0-RC").test(MiraiConsole.version)) {
"$name $version 需要 Mirai-Console 版本 >= 2.12.0,目前版本是 ${MiraiConsole.version}"
}

for (config in config) config.reload()
for (data in data) data.reload()
Expand Down

0 comments on commit 4d3ea10

Please sign in to comment.