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
cdbf4954
Commit
cdbf4954
authored
Oct 26, 2019
by
Him188
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d786f59f
43eb978c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
README.md
README.md
+0
-20
No files found.
README.md
View file @
cdbf4954
...
@@ -12,8 +12,6 @@ Mirai 的所有模块均开源
...
@@ -12,8 +12,6 @@ Mirai 的所有模块均开源
## 抢先体验
## 抢先体验
核心框架结构已经开发完毕,一些核心功能也测试完成。
核心框架结构已经开发完毕,一些核心功能也测试完成。
仅需几分钟就可以测试 Mirai.
仅需几分钟就可以测试 Mirai.
现在你可以登录小号来测试 Mirai.
即使测试消息时未发现冻结情况,我们也无法100%保证账号冻结不会发生。
目前还没有写构建,请使用 IDE 运行单个 main 函数。
目前还没有写构建,请使用 IDE 运行单个 main 函数。
1.
Clone
1.
Clone
...
@@ -34,24 +32,6 @@ subscribeAlways<FriendMessageEvent>{
...
@@ -34,24 +32,6 @@ subscribeAlways<FriendMessageEvent>{
}
}
```
```
##### DSL
查看更多:
[
ListenerBuilder
](
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/Subscribers.kt#L87
)
```
kotlin
inline
fun
<
reified
E
:
Event
>
subscribeAll
(
builder
:
ListenerBuilder
.()
->
Unit
)
subscribe
<
FriendMessageEvent
>{
always
{
//it: FriendMessageEvent
//coroutineContext: EventScope.coroutineContext
}
//可同时开始多个监听。
always
{
//it: FriendMessageEvent
//coroutineContext: EventScope.coroutineContext
}
}
```


### 图片测试
### 图片测试
...
...
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