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
43eb978c
Commit
43eb978c
authored
Oct 25, 2019
by
Him188
Committed by
GitHub
Oct 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
3dfaa4ee
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 @
43eb978c
...
...
@@ -12,8 +12,6 @@ Mirai 的所有模块均开源
## 抢先体验
核心框架结构已经开发完毕,一些核心功能也测试完成。
仅需几分钟就可以测试 Mirai.
现在你可以登录小号来测试 Mirai.
即使测试消息时未发现冻结情况,我们也无法100%保证账号冻结不会发生。
目前还没有写构建,请使用 IDE 运行单个 main 函数。
1.
Clone
...
...
@@ -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