Merge remote-tracking branch 'origin/master'

This commit is contained in:
ryoii 2020-03-24 16:50:59 +08:00
commit b46334f841
4 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,9 @@ Mirai 是一个在全平台下运行,提供 QQ Android 和 TIM PC 协议支持
[mirai-console插件开发快速上手](PluginDocs/ToStart.MD)
### 使用
#### [下载(download)](https://github.com/mamoe/mirai-console/releases)
**[下载(download)](https://github.com/mamoe/mirai-console/releases)**
请下载最新的 `mirai-console-wrapper-x.x.x-all.jar`
#### 如何启动
如果是打包好的软件, 双击<br>
如果是命令行运行, 请注意运行目录, 推荐cd到jar的文件夹下运行, 运行目录与Console的全部配置文件储存位置有关

View File

@ -2,7 +2,7 @@
kotlin.code.style=official
# config
miraiVersion=0.29.1
miraiConsoleVersion=0.3.5
miraiConsoleVersion=0.3.6
miraiConsoleWrapperVersion=0.1.3
kotlin.incremental.multiplatform=true
kotlin.parallel.tasks.in.project=true

View File

@ -47,7 +47,7 @@ internal suspend inline fun HttpClient.downloadRequest(url: String): ByteReadCha
}
}
private val jcenterPath = "https://jcenter.bintray.com/{group}/{project}/{version}/:{project}-{version}.{extension}"
private val jcenterPath = "https://jcenter.bintray.com/{group}/{project}/{version}/{project}-{version}.{extension}"
private val aliyunPath =
"https://maven.aliyun.com/nexus/content/repositories/jcenter/{group}/{project}/{version}/{project}-{version}.{extension}"

View File

@ -65,6 +65,7 @@ internal inline fun registerConsoleCommands(builder: CommandBuilder.() -> Unit):
return CommandBuilder().apply(builder).register(ConsoleCommandOwner)
}
inline fun PluginBase.registerCommand(builder: CommandBuilder.() -> Unit):Command{
return CommandBuilder().apply(builder).register(this.asCommandOwner())
}