Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
9029dab4
Commit
9029dab4
authored
Mar 22, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.29.0
parent
f87a8206
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
CHANGELOG.md
CHANGELOG.md
+43
-0
gradle.properties
gradle.properties
+1
-1
No files found.
CHANGELOG.md
View file @
9029dab4
...
@@ -2,6 +2,49 @@
...
@@ -2,6 +2,49 @@
开发版本. 频繁更新, 不保证高稳定性
开发版本. 频繁更新, 不保证高稳定性
## `0.29.0` 2020/3/22
-
引入新消息监听 DSL:
`whileSelectMessages`
, 简化连续监听过程
```
kotlin
bot
.
subscribeMessages
{
"开启复读模式"
`
->
`
{
reply
(
"成功开启"
)
whileSelectMessages
{
"stop"
`
->
`
{
reply
(
"已关闭复读"
)
false
// 停止循环
}
default
{
reply
(
message
)
true
// 继续循环
}
}
reply
(
"复读模式结束"
)
}
}
```
-
引入新消息监听 DSL:
`selectMessages`
, 简化筛选监听过程
```
kotlin
bot
.
subscribeMessages
{
"test"
`
->
`
{
reply
(
"choose option: 'hello', 'hi'"
)
val
value
:
String
=
selectMessages
{
"hello"
`
->
`
{
"123"
}
"hi"
`
->
`
{
"222"
}
default
{
"default value"
}
}
reply
(
value
)
}
}
```
-
监听消息的 DSL 新增
`infix fun String.->(block)`
-
处理
`StatSvc.ReqMSFOffline`
(#150)
-
`Contact.sendMessage`
现在接受
`Message`
参数, 而不是
`MessageChain`
以兼容
`CombinedMessage`
-
`Member.sendMessage`
现在返回
`MessageReceipt<Member>`
而不是 QQ 泛型
-
调整 JVM
`MessageUtils`
中一些方法的可见性 (
`@JvmSynthetic`
)
-
调整命名:
`OfflineImage.queryOriginUrl`
改为
`OfflineImage.queryUrl`
-
允许手动重新初始化
`Bot`
(
`BotNetworkHandler.init`
), 确保重初始化资源释放
## `0.28.0` 2020/3/19
## `0.28.0` 2020/3/19
-
修复 Jce 反序列化在部分情况下出错的问题, 修复 #145
-
修复 Jce 反序列化在部分情况下出错的问题, 修复 #145
-
新增群公告低级 API
-
新增群公告低级 API
...
...
gradle.properties
View file @
9029dab4
# style guide
# style guide
kotlin.code.style
=
official
kotlin.code.style
=
official
# config
# config
miraiVersion
=
0.2
8
.0
miraiVersion
=
0.2
9
.0
kotlin.incremental.multiplatform
=
true
kotlin.incremental.multiplatform
=
true
kotlin.parallel.tasks.in.project
=
true
kotlin.parallel.tasks.in.project
=
true
# kotlin
# kotlin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment