Package top.focess.qq.core.listener
Class ChatListener
- java.lang.Object
-
- top.focess.qq.core.listener.ChatListener
-
-
Constructor Summary
Constructors Constructor Description ChatListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFriendChat(FriendChatEvent event)voidonGroupChat(GroupChatEvent event)voidonStrangerChat(StrangerChatEvent event)static voidregisterInputListener(IOHandler ioHandler, CommandSender commandSender, boolean flag)Register input String listener.
-
-
-
Method Detail
-
registerInputListener
public static void registerInputListener(IOHandler ioHandler, CommandSender commandSender, boolean flag)
Register input String listener. (Used to communicate with CommandSender with ioHandler)- Parameters:
ioHandler- the receivercommandSender- the commandSenderflag- true if you want to get the string value of this message, false if you want to get MiraiCode of this message
-
onStrangerChat
public void onStrangerChat(StrangerChatEvent event)
-
onGroupChat
public void onGroupChat(GroupChatEvent event)
-
onFriendChat
public void onFriendChat(FriendChatEvent event)
-
-