mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-05 20:37:12 +08:00
new CommandSender
This commit is contained in:
parent
6607952eb5
commit
6a9f5ec11e
@ -12,8 +12,8 @@ import org.gradle.kotlin.dsl.DependencyHandlerScope
|
|||||||
object Versions {
|
object Versions {
|
||||||
object Mirai {
|
object Mirai {
|
||||||
const val core = "0.34.0"
|
const val core = "0.34.0"
|
||||||
const val console = "0.4.7"
|
const val console = "0.4.8"
|
||||||
const val consoleGraphical = "0.0.6"
|
const val consoleGraphical = "0.0.7"
|
||||||
const val consoleWrapper = "0.2.0"
|
const val consoleWrapper = "0.2.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ interface CommandSender {
|
|||||||
suspend fun sendMessage(messageChain: Message)
|
suspend fun sendMessage(messageChain: Message)
|
||||||
|
|
||||||
suspend fun sendMessage(message: String)
|
suspend fun sendMessage(message: String)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 写入要发送的内容 所有内容最后会被以一条发出
|
* 写入要发送的内容 所有内容最后会被以一条发出
|
||||||
*/
|
*/
|
||||||
|
@ -128,6 +128,7 @@ object PluginManager {
|
|||||||
val res = it.inputStream.use { input ->
|
val res = it.inputStream.use { input ->
|
||||||
input.readBytes().encodeToString()
|
input.readBytes().encodeToString()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关闭jarFile,解决热更新插件问题
|
// 关闭jarFile,解决热更新插件问题
|
||||||
(it as JarURLConnection).jarFile.close()
|
(it as JarURLConnection).jarFile.close()
|
||||||
res
|
res
|
||||||
|
Loading…
Reference in New Issue
Block a user