From a9650ede2747c8d1993827cf16d5b5f8e81d9216 Mon Sep 17 00:00:00 2001 From: liujiahua123123 Date: Tue, 10 Sep 2019 19:57:26 +0800 Subject: [PATCH] update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9022e191d..58737e9ae 100644 --- a/README.md +++ b/README.md @@ -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("你好!")