Skip to content

Commit

Permalink
build: 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 20, 2022
1 parent 7bede40 commit 898d491
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ plugins {
}

group = "xyz.cssxsh"
version = "1.1.1"
version = "1.1.2"

repositories {
mavenLocal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}

mavenCentralPublish {
Expand All @@ -20,13 +21,12 @@ mavenCentralPublish {
licenseFromGitHubProject("AGPL-3.0", "master")
publication {
artifact(tasks.getByName("buildPlugin"))
artifact(tasks.getByName("buildPluginLegacy"))
}
}

dependencies {
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.3.1")
compileOnly("xyz.cssxsh.mirai:mirai-skia-plugin:1.1.3")
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.4.0")
compileOnly("xyz.cssxsh.mirai:mirai-skia-plugin:1.1.6")
compileOnly("xyz.cssxsh:weibo-helper:1.5.3")
compileOnly("xyz.cssxsh:bilibili-helper:1.6.1")
compileOnly("net.mamoe:mirai-core-utils:2.12.0")
Expand All @@ -47,7 +47,7 @@ dependencies {
}
// Test
testImplementation(kotlin("test", "1.6.21"))
testImplementation("xyz.cssxsh.mirai:mirai-skia-plugin:1.1.3")
testImplementation("xyz.cssxsh.mirai:mirai-skia-plugin:1.1.6")
testImplementation("net.mamoe:mirai-core-utils:2.12.0")
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 5 additions & 1 deletion src/main/kotlin/MemeHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ public object MemeHelper : SimpleListenerHost() {
public suspend fun MessageEvent.handle() {
for (service in MemeService) {
if (!service.loaded) continue
if (!toCommandSender().hasPermission(service.permission)) continue
try {
if (!toCommandSender().hasPermission(service.permission)) continue
} catch (_: IllegalArgumentException) {
continue
}

val match = service.regex.find(input = message.content) ?: continue

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/MemeHelperPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public object MemeHelperPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.meme-helper",
name = "meme-helper",
version = "1.1.1",
version = "1.1.2",
) {
author("cssxsh")
dependsOn("xyz.cssxsh.mirai.plugin.mirai-skia-plugin", ">= 1.1.0", false)
dependsOn("xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin", ">= 2.2.0", true)
dependsOn("xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin", ">= 2.4.0", true)
dependsOn("xyz.cssxsh.mirai.plugin.weibo-helper", true)
dependsOn("xyz.cssxsh.mirai.plugin.bilibili-helper", true)
}
Expand Down

0 comments on commit 898d491

Please sign in to comment.