samczsun / Skype4J

Skype API written in Java. Does not support P2P chats
Apache License 2.0
145 stars 48 forks source link

Bot not accepting friend requests #152

Closed ItsGravix closed 7 years ago

ItsGravix commented 7 years ago

Hi, I have this code in my listener class:

@EventHandler
    public void onContact(ContactRequestEvent event) {
        try {
            System.out.println("Got a contact request");
            event.getRequest().accept();
            System.out.println("Added " +event.getRequest().getSender().getUsername() +" to contact list");
        } catch (ConnectionException e) {
            e.printStackTrace();
        }
    }

When I get a friend request, it doesn't even output "Got a contact request", what can I do to fix this? Thanks.

EDIT: Updated to 0.2.0 and now I get this error:

com.samczsun.skype4j.exceptions.ConnectionException: Cause: While loading authorization requests Response: 404 Not Found