Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit c5d7c9c

Browse files
committed
release: v2.5.2
1 parent da78cc9 commit c5d7c9c

File tree

32 files changed

+37
-47
lines changed

32 files changed

+37
-47
lines changed

component/component-ding/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>component-parent</artifactId>
2121
<groupId>love.forte.simple-robot</groupId>
22-
<version>2.5.1<!--v--></version>
22+
<version>2.5.2<!--v--></version>
2323
<relativePath>../pom.xml</relativePath>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>

component/component-kaiheila-parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>component-parent</artifactId>
77
<groupId>love.forte.simple-robot</groupId>
8-
<version>2.5.1<!--v--></version>
8+
<version>2.5.2<!--v--></version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

component/component-lovelycat-httpapi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>component-parent</artifactId>
77
<groupId>love.forte.simple-robot</groupId>
8-
<version>2.5.1<!--v--></version>
8+
<version>2.5.2<!--v--></version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

component/component-mirai/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>love.forte.simple-robot</groupId>
77
<artifactId>component-parent</artifactId>
8-
<version>2.5.1<!--v--></version>
8+
<version>2.5.2<!--v--></version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>
@@ -22,7 +22,7 @@
2222
<url>https://github.com/ForteScarlet/simpler-robot/tree/dev/component/component-mirai</url>
2323

2424
<properties>
25-
<mirai.version>2.13.2</mirai.version>
25+
<mirai.version>2.14.0</mirai.version>
2626
</properties>
2727

2828

component/component-mirai/src/main/java/love/forte/simbot/component/mirai/message/result/MiraiAuthInfo.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package love.forte.simbot.component.mirai.message.result
1616

1717
import love.forte.simbot.api.message.results.AuthInfo
18-
import love.forte.simbot.api.message.results.asCookies
1918
import love.forte.simbot.component.mirai.sender.Cookies
2019
import love.forte.simbot.thing.StructuralThingWithName
2120

@@ -29,9 +28,6 @@ open class MiraiAuthInfo(private val _cookies: Cookies) : AuthInfo {
2928
_cookies.toCookiesMap()
3029
}
3130

32-
/** cookies信息。 */
33-
override val cookies: AuthInfo.Cookies get() = auths.asCookies()
34-
3531
override val auths: AuthInfo.Auths by lazy(LazyThreadSafetyMode.PUBLICATION) {
3632
MiraiAuthInfoCookies()
3733
}

component/component-mirai/src/main/java/love/forte/simbot/component/mirai/sender/MiraiSenderUtil.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ package love.forte.simbot.component.mirai.sender
1717
import love.forte.simbot.component.mirai.message.EmptySingleMessage
1818
import net.mamoe.mirai.Bot
1919
import net.mamoe.mirai.contact.Member
20-
import net.mamoe.mirai.message.data.EmptyMessageChain
2120
import net.mamoe.mirai.message.data.Message
2221
import net.mamoe.mirai.message.data.MessageChain
22+
import net.mamoe.mirai.message.data.emptyMessageChain
2323

2424
/**
2525
* 获取某个群的群员。
@@ -41,7 +41,7 @@ internal inline fun Bot.getGroupMemberOrNull(groupCode: Long, memberCode: Long):
4141
*/
4242
internal fun Message.isNotEmptyMsg(): Boolean =
4343
this !== EmptySingleMessage &&
44-
this !== EmptyMessageChain &&
44+
this !== emptyMessageChain() &&
4545
if (this is MessageChain) this.isNotEmpty() else true
4646

4747

component/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>project</artifactId>
77
<groupId>love.forte.simple-robot</groupId>
8-
<version>2.5.1<!--v--></version>
8+
<version>2.5.2<!--v--></version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

core-api/api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>project</artifactId>
77
<groupId>love.forte.simple-robot</groupId>
8-
<version>2.5.1<!--v--></version>
8+
<version>2.5.2<!--v--></version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

core-api/api/src/main/java/love/forte/simbot/api/message/results/AuthInfo.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import love.forte.simbot.thing.resolveValue
2525
*/
2626
public interface AuthInfo : Result {
2727

28-
@Deprecated("Use property 'auths'.")
29-
val cookies: Cookies
28+
@Deprecated("Use property 'auths'.", ReplaceWith("auths"))
29+
val cookies: Cookies get() = auths.asCookies()
3030

3131
/**
3232
* 得到权限信息。不保证其内部存在信息。
@@ -99,8 +99,6 @@ public fun emptyAuthInfo(): AuthInfo = EmptyAuthInfo
9999
* 空值实现。
100100
*/
101101
private object EmptyAuthInfo : AuthInfo {
102-
override val cookies: AuthInfo.Cookies
103-
get() = EmptyCookie
104102
override val auths: AuthInfo.Auths
105103
get() = EmptyAuth
106104
override val token: String?

core-api/api/src/main/java/love/forte/simbot/api/sender/FailedSender.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public object FailedSender : Sender.Def {
4646
toNewMember: Boolean,
4747
confirm: Boolean,
4848
): Carrier<Boolean> = FalseCarrier
49-
50-
override fun sendGroupSign(group: String, title: String, message: String): Carrier<Boolean> = FalseCarrier
5149
}
5250

5351

0 commit comments

Comments
 (0)