Commit 1a4cc109 authored by liujiahua123123's avatar liujiahua123123

update readme

parent e04062d2
......@@ -14,7 +14,7 @@
3. Run [MiraiMain](mirai-core/src/main/java/net/mamoe/mirai/MiraiMain.java#L7)
### 事件 Hook (Kotlin)
####java:
#### java:
```
MiraiEventHook.onEvent(FriendMessageEvent.class)
.handler(a -> {
......@@ -23,7 +23,7 @@ MiraiEventHook.onEvent(FriendMessageEvent.class)
})
.mountAlways();
```
####kotlin:
#### kotlin:
```
FriendMessageEvent::class.hookAlways{
if(it.message() valueEquals "你好")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment