File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 45
45
- name : Create Release
46
46
uses : ncipollo/release-action@v1
47
47
with :
48
- artifacts" : ./build/mirai/mirai-console-lolicon-${{ steps.vars.outputs.tag }}.mirai.jar
48
+ artifacts : ./build/mirai/mirai-console-lolicon-${{ steps.vars.outputs.tag }}.mirai.jar
49
49
artifactContentType : application/jar
50
50
tag : ${{ steps.vars.outputs.tag }}
51
51
token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ plugins {
11
11
}
12
12
13
13
group = " com.github.samarium150"
14
- version = " 4.1.0 "
14
+ version = " 4.1.1 "
15
15
16
16
repositories {
17
17
mavenLocal()
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ object Lolicon: CompositeCommand(
182
182
/* *
183
183
* Advanced get
184
184
* <br>
185
- * 子命令adv,根据[json]获取图片
185
+ * 子命令adv,根据 [json] 获取图片
186
186
*
187
187
* @param json JSON字符串
188
188
*/
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ import java.net.Proxy
41
41
object Main: KotlinPlugin(
42
42
JvmPluginDescription (
43
43
id = "com.github.samarium150.mirai-console-lolicon",
44
- version = "4.1.0 ",
44
+ version = "4.1.1 ",
45
45
name = "mirai-console-lolicon"
46
46
)
47
47
) {
@@ -68,8 +68,10 @@ object Main: KotlinPlugin(
68
68
69
69
if (PluginConfig .master != 0L ) {
70
70
PluginData .trustedUsers.add(PluginConfig .master)
71
- PluginData .userSet.add(PluginConfig .master)
72
- PluginData .reload()
71
+ if (PluginConfig .mode == " whitelist" )
72
+ PluginData .userSet.add(PluginConfig .master)
73
+ if (PluginConfig .mode == " blacklist" )
74
+ PluginData .userSet.remove(PluginConfig .master)
73
75
} else logger.warning(" 请先在配置文件设置Bot所有者id" )
74
76
75
77
client = HttpClient {
You can’t perform that action at this time.
0 commit comments