Skip to content

Commit

Permalink
build: 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 15, 2022
1 parent 9b33b21 commit ec98269
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
plugins {
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.21"
id("net.mamoe.mirai-console") version "2.11.1"
id("net.mamoe.mirai-console") version "2.12.0"
id("net.mamoe.maven-central-publish") version "0.7.1"
}

group = "io.github.gnuf0rce"
version = "1.3.1"
version = "1.3.2"

mavenCentralPublish {
useCentralS01()
singleDevGithubProject("gnuf0rce", "mirai-content-censor", "cssxsh")
licenseFromGitHubProject("AGPL-3.0", "master")
publication {
artifact(tasks.getByName("buildPlugin"))
artifact(tasks.getByName("buildPluginLegacy"))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ package io.github.gnuf0rce.mirai.censor

import io.github.gnuf0rce.mirai.censor.command.*
import io.github.gnuf0rce.mirai.censor.data.*
import net.mamoe.mirai.console.MiraiConsole
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.register
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.unregister
import net.mamoe.mirai.console.plugin.*
import net.mamoe.mirai.console.plugin.jvm.*
import net.mamoe.mirai.console.util.*
import net.mamoe.mirai.event.*
import net.mamoe.mirai.utils.*
import xyz.cssxsh.mirai.admin.*

public object MiraiContentCensorPlugin : KotlinPlugin(
JvmPluginDescription("io.github.gnuf0rce.content-censor", "1.3.1") {
JvmPluginDescription("io.github.gnuf0rce.content-censor", "1.3.2") {
name("content-censor")
author("cssxsh")

Expand All @@ -19,6 +22,11 @@ public object MiraiContentCensorPlugin : KotlinPlugin(
) {

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}"
}

ContentCensorConfig.reload()
ContentCensorToken.reload()
ContentCensorHistory.reload()
Expand Down

0 comments on commit ec98269

Please sign in to comment.