update readme

This commit is contained in:
liujiahua123123 2019-09-10 19:57:26 +08:00
parent 1823efd59e
commit a9650ede27

View File

@ -15,7 +15,7 @@
#### 事件 Hook (Kotlin)
#####java:
```php
```
MiraiEventHook.onEvent(FriendMessageEvent.class)
.handler(a -> {
if(a.getMessageString().equals("你好"))
@ -24,7 +24,7 @@ MiraiEventHook.onEvent(FriendMessageEvent.class)
.mountAlways();
```
#####kotlin:
```php
```
FriendMessageEvent::class.hookAlways{
if(it.message() valueEquals "你好")
it.qq.sendMessage("你好!")