samczsun / Skype4J

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

AutoFriendRequest help me #133

Open zaxosx opened 7 years ago

zaxosx commented 7 years ago

Can someone write an example about auto friend accept request?

KakosZ commented 7 years ago

zaxosx, do you know how make that in non automatic way?

zaxosx commented 7 years ago

Via skype4J no

2016-09-28 7:17 GMT+03:00 KakosZ notifications@github.com:

zaxosx, do you know how make that in non automatic way?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/samczsun/Skype4J/issues/133#issuecomment-250067727, or mute the thread https://github.com/notifications/unsubscribe-auth/AToUMzJtqOqaRbrGi1dBrj2Up0r9aAQSks5queo8gaJpZM4J_UZH .

zommer0532 commented 7 years ago

@EventHandler public void onContact(ContactRequestEvent event) { try { System.out.println("New contact request from " + event.getRequest().getSender().getUsername() + " at " + event.getRequest().getTime() + " with message " + event.getRequest().getMessage()); event.getRequest().accept(); System.out.println("Added " +event.getRequest().getSender().getUsername() +"to contact list");

    } catch (ConnectionException e) {

        e.printStackTrace();
    }

}

Add ing class that implements Listener