1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-25 06:50:09 +08:00

Update core to 1.0-RC

This commit is contained in:
Him188 2020-05-06 14:45:06 +08:00
parent e813b27227
commit a35bbbb7d0
4 changed files with 5 additions and 7 deletions
buildSrc/src/main/kotlin
mirai-console/src/main/kotlin/net/mamoe/mirai/console

View File

@ -12,9 +12,9 @@ import org.gradle.kotlin.dsl.DependencyHandlerScope
object Versions {
object Mirai {
const val core = "1.0-RC"
const val console = "0.5.0"
const val console = "0.5.1"
const val consoleGraphical = "0.0.7"
const val consoleWrapper = "1.0.0"
const val consoleWrapper = "1.0."
}
object Kotlin {

View File

@ -13,7 +13,6 @@ import kotlinx.coroutines.runBlocking
import net.mamoe.mirai.console.MiraiConsole
import net.mamoe.mirai.contact.Contact
import net.mamoe.mirai.contact.Member
import net.mamoe.mirai.contact.sendMessage
import net.mamoe.mirai.message.data.Message
/**

View File

@ -20,10 +20,9 @@ import net.mamoe.mirai.console.utils.addManager
import net.mamoe.mirai.console.utils.checkManager
import net.mamoe.mirai.console.utils.managers
import net.mamoe.mirai.console.utils.removeManager
import net.mamoe.mirai.contact.sendMessage
import net.mamoe.mirai.event.subscribeMessages
import net.mamoe.mirai.getFriendOrNull
import net.mamoe.mirai.message.GroupMessage
import net.mamoe.mirai.message.GroupMessageEvent
import net.mamoe.mirai.utils.SimpleLogger
import java.util.*
@ -62,7 +61,7 @@ object DefaultCommands {
bot.subscribeMessages {
startsWith(commandPrefix) { message ->
if (bot.checkManager(this.sender.id)) {
val sender = if (this is GroupMessage) {
val sender = if (this is GroupMessageEvent) {
GroupContactCommandSender(this.sender, this.subject)
} else {
ContactCommandSender(this.subject)

View File

@ -7,7 +7,7 @@
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress("unused", "unused")
@file:Suppress("unused", "unused", "INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
package net.mamoe.mirai.console.plugins