-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加@MessageHandler注解和sendMessage方法 #24
Labels
enhancement
New feature or request
Comments
之前有考虑过,后面太忙就鸽了,可以考虑添加,我这两天写一下,感谢建议。 |
已实现,版本为 v1.1.8,目前 Release 到 Maven 仓库了,需要过几个小时等待同步。 |
新的
|
感谢指正,目前改了一版,你觉得如何? @MessageHandler
fun test(bot: Bot, event: WholeMessageEvent) {
bot.sendMsg(event, "hello", false)
} Shiro/src/main/java/com/mikuac/shiro/core/Bot.java Lines 64 to 83 in 3206cb5
|
挺好的,这样就更加方便了 |
今天晚上会再发一版,v1.1.9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
功能描述
添加
@MessageHandler
注解和sendMessage
方法@MessageHandler
同时监听PrivateMessage和GroupMessage,sendMessage
方法根据Message类型和来源发送消息。比如是PrivateMessage就sendPrivateMessage
到Event的userIdThe text was updated successfully, but these errors were encountered: