Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoFriendRequest help me #133

Open
zaxosx opened this issue Sep 16, 2016 · 3 comments
Open

AutoFriendRequest help me #133

zaxosx opened this issue Sep 16, 2016 · 3 comments

Comments

@zaxosx
Copy link

zaxosx commented Sep 16, 2016

Can someone write an example about auto friend accept request?

@KakosZ
Copy link

KakosZ commented Sep 28, 2016

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

@zaxosx
Copy link
Author

zaxosx commented Sep 28, 2016

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
#133 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AToUMzJtqOqaRbrGi1dBrj2Up0r9aAQSks5queo8gaJpZM4J_UZH
.

@zommer0532
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants