Skip to content

Commit

Permalink
优化 import
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Jul 1, 2022
1 parent 796eae5 commit 8111e54
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import catcode.Neko
import cn.hutool.core.lang.UUID
import love.forte.simbot.component.mirai.utils.toNeko
import net.mamoe.mirai.contact.Contact
import net.mamoe.mirai.message.data.*
import net.mamoe.mirai.message.data.ForwardMessage
import net.mamoe.mirai.message.data.ForwardMessageBuilder
import net.mamoe.mirai.message.data.Message
import net.mamoe.mirai.message.data.buildForwardMessage
import net.mamoe.mirai.utils.MiraiExperimentalApi

/**
Expand Down Expand Up @@ -108,8 +111,5 @@ public class MiraiForwardMessage(
override fun equals(other: Any?): Boolean {
return this === other
}

override fun hashCode(): Int {
return super.hashCode()
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package love.forte.test;

import love.forte.common.ioc.annotation.Beans;
import love.forte.simbot.annotation.OnGroup;
import love.forte.simbot.annotation.OnPrivate;
import love.forte.simbot.api.message.events.GroupMsg;
import love.forte.simbot.api.message.events.PrivateMsg;
import love.forte.simbot.api.sender.Sender;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
package love.forte.simbot.bot

import love.forte.simbot.SimbotIllegalStateException
import love.forte.simbot.bot.BotVerifyInfo.Companion.withCode
import love.forte.simbot.bot.BotVerifyInfo.Companion.withCodeVerification
import love.forte.simbot.bot.BotVerifyInfo.Companion.withToken
import love.forte.simbot.mark.Since
import java.util.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import love.forte.common.ioc.annotation.ConfigBeans
import love.forte.common.ioc.annotation.Depend
import love.forte.common.ioc.annotation.PostPass
import love.forte.simbot.bot.BotManager
import love.forte.simbot.bot.BotVerifyException
import love.forte.simbot.bot.BotVerifyInfoConfiguration
import love.forte.simbot.bot.code
import love.forte.simbot.core.TypedCompLogger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package love.forte.simbot.spring.autoconfigure.properties;

import love.forte.common.configuration.annotation.ConfigInject;
import net.mamoe.mirai.utils.BotConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
package test

import io.netty.util.internal.ThrowableUtil.addSuppressed
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import love.forte.simbot.bot.BotVerifyException
import net.mamoe.mirai.BotFactory
import net.mamoe.mirai.utils.withExceptionCollector
import org.slf4j.LoggerFactory

class MyEx(message: String?, cause: Throwable?) : RuntimeException(message, cause)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package love.forte.simbot.spring.autoconfigure;

import love.forte.simbot.annotation.SimbotApplication;
import org.springframework.context.annotation.Import;

/**
* @author ForteScarlet
Expand Down

0 comments on commit 8111e54

Please sign in to comment.