Skip to content

Commit

Permalink
build: 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Oct 15, 2022
1 parent 8932d25 commit 618cb90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
## 指令

* `/nai <word>` 生成一张图片
例如 `/nai 连裤袜 双马尾`
例如 `/nai 连裤袜 双马尾` (只有部分词条会自动翻译)
例如 `/nai swimsuit #seed=12346` (设置种子)
例如 `/nai "swimsuit, ahegao"` (如果需要以 `,` 分割词条, 请用 `"` 包裹)
* `/nai-login <mail> <password>` 登录账号
例如 `/nai-login [email protected] 1919810`

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "xyz.cssxsh.mirai.novelai"
version = "1.0.5"
version = "1.0.6"

repositories {
mavenLocal()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/novelai/NovelAiHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public object NovelAiHelper : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.novelai-helper",
name = "novelai-helper",
version = "1.0.5",
version = "1.0.6",
) {
author("cssxsh")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ public object NovelAiHelperConfig : ReadOnlyPluginConfig("config"), NovelAiClien

override var token: String = ""
get() {
return if (field.isEmpty()) {
return field.ifEmpty {
val value = token0.readText()
field = value
value
} else {
field
}
}
set(value) {
Expand Down

0 comments on commit 618cb90

Please sign in to comment.