Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好吧,我需要 Skype4Java 来检查用户在聊天中说了什么,所以如果它等于一个命令,那么它将发送一个响应。我已经处理了响应部分,我只需要知道如何让它检查用户在聊天中所说的话。
这将是:
Skype.addChatMessageListener(new ChatHandler());
和:
public void chatMessageReceived(ChatMessage chatMessage) throws SkypeException { User sender = chatMessage.getSender(); sender.send("hue" + sender.getId()); }