Commit a9650ede authored by liujiahua123123's avatar liujiahua123123

update readme

parent 1823efd5
......@@ -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("你好!")
......
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