0

I have this code, and it works but sometimes it sends 2 messages to the person.

Skype.addChatMessageListener(new ChatMessageAdapter() {
    public void chatMessageReceived(ChatMessage received) throws SkypeException {
        if (received.getContent().equals("!server")) {
            // Sender
            received.getSender().send("Comando Em Manutenção");
        }
    })

How to solve this bug?

AtomHeartFather
  • 954
  • 17
  • 35
TxCraft
  • 35
  • 10

1 Answers1

0

This seems to be a known issue in Skype4Java. Also, according to the author's comment, the project has been abandoned, but there is another one based on it: Skype Java API.

From the README:

This project is a mavenization and release of Skype4Java with several bug fixes.

AtomHeartFather
  • 954
  • 17
  • 35