From 7b9e6e532d03e91fc3059cacaffa09bb12757bd4 Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Fri, 20 Dec 2019 09:52:00 +0800 Subject: [PATCH] Fix unresolved package --- .../src/main/kotlin/demo/gentleman/Main.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt b/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt index 3fd6a4d3a..e89609016 100644 --- a/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt +++ b/mirai-demos/mirai-demo-gentleman/src/main/kotlin/demo/gentleman/Main.kt @@ -7,6 +7,7 @@ import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.delay import kotlinx.coroutines.launch import kotlinx.coroutines.withContext +import net.mamoe.mirai.Bot import net.mamoe.mirai.BotAccount import net.mamoe.mirai.alsoLogin import net.mamoe.mirai.contact.MemberPermission @@ -22,7 +23,6 @@ import net.mamoe.mirai.message.data.Image import net.mamoe.mirai.message.data.buildXMLMessage import net.mamoe.mirai.message.data.getValue import net.mamoe.mirai.message.sendAsImageTo -import net.mamoe.mirai.timpc.TIMPC import java.io.File import java.util.* import javax.swing.filechooser.FileSystemView @@ -44,7 +44,7 @@ private fun readTestAccount(): BotAccount? { @Suppress("UNUSED_VARIABLE") suspend fun main() { - val bot = TIMPC.Bot( + val bot = Bot( readTestAccount() ?: BotAccount( id = 913366033, password = "a18260132383"