Skip to content

Commit 9f052ce

Browse files
committed
更新版本 v3.0.0.preview.10.0
1 parent e2483dc commit 9f052ce

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.changelog/v3.0.0.preview.10.0.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ suspend fun EventProcessingContext.fooListener(event: BarEvent, session: Continu
1212
// ...
1313
provider.push("Name")
1414
}
15-
session { nextMessages }
15+
val message: MessageContent = session { nextMessage(TarMessageEvent) }
16+
// ...
1617
}
1718
```
1819

19-
20+
## 依赖规则更新
21+
相关组件在后续的更新中,会调整它们的依赖策略:将不再传递 `love.forte.simbot``love.forte.simbot.boot`
22+
坐标下的依赖。因此不论是否要使用某些组件,都必须自行引入simbot的核心依赖。
2023

2124

2225

apis/simbot-api/src/main/kotlin/love/forte/simbot/event/ContinuousSessionContext.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ public abstract class ContinuousSessionContext : BaseContinuousSessionContext {
592592
*
593593
* [next] 对事件类型进行的对应的匹配规则对照表如下:
594594
*
595-
* | 当前事件类型 | [目标类型][key]同类型 | [目标类型][key]不同类型 |
595+
* | 当前事件类型 | [目标事件][key]同类型 | [目标事件][key]不同类型 |
596596
* | :------------------------------------------ | ------------------- | --------------------: |
597597
* | [Event] | [bot][Event.bot] 的ID要相同 | _不会出现不同类型_ |
598598
* | [OrganizationEvent] | [organization][OrganizationEvent.organization] 的ID要相同 | 放行 |
@@ -666,7 +666,7 @@ public abstract class ContinuousSessionContext : BaseContinuousSessionContext {
666666
*
667667
* [next] 对事件类型进行的对应的匹配规则对照表如下:
668668
*
669-
* | 当前事件类型 | [目标类型][key]同类型 | [目标类型][key]不同类型 |
669+
* | 当前事件类型 | [目标事件][key]同类型 | [目标事件][key]不同类型 |
670670
* | :------------------------------------------ | ------------------- | --------------------: |
671671
* | [Event] | [bot][Event.bot] 的ID要相同 | _不会出现不同类型_ |
672672
* | [OrganizationEvent] | [organization][OrganizationEvent.organization] 的ID要相同 | 放行 |
@@ -749,7 +749,7 @@ public abstract class ContinuousSessionContext : BaseContinuousSessionContext {
749749
*
750750
* [next] 对事件类型进行的对应的匹配规则对照表如下:
751751
*
752-
* | 当前事件类型 | 目标类型同类型 | 目标类型不同类型 |
752+
* | 当前事件类型 | 目标事件同类型 | 目标事件不同类型 |
753753
* | :------------------------------------------ | ------------------- | --------------------: |
754754
* | [OrganizationEvent] | [organization][OrganizationEvent.organization] 的ID要相同 | 放行 |
755755
* | [UserEvent] | [user][UserEvent.user] 的ID要相同 | 放行 |
@@ -820,7 +820,7 @@ public abstract class ContinuousSessionContext : BaseContinuousSessionContext {
820820
*
821821
* [next] 对事件类型进行的对应的匹配规则对照表如下:
822822
*
823-
* | 当前事件类型 | 目标类型同类型 | 目标类型不同类型 |
823+
* | 当前事件类型 | 目标事件同类型 | 目标事件不同类型 |
824824
* | :------------------------------------------ | ------------------- | --------------------: |
825825
* | [Event] | [bot][Event.bot] 的ID要相同 | _不会出现不同类型_ |
826826
* | [OrganizationEvent] | [organization][OrganizationEvent.organization] 的ID要相同 | 放行 |

apis/simbot-api/src/test/java/SessionTest4J.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
public class SessionTest4J {
88

99
public void run(FriendMessageEvent event, ContinuousSessionContext session) {
10-
session.nextMessages(event);
10+
session.nextMessage(event);
1111
}
1212
}

0 commit comments

Comments
 (0)