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

How to automatically add a friend? #237

Closed
blomer opened this issue Feb 3, 2020 · 2 comments
Closed

How to automatically add a friend? #237

blomer opened this issue Feb 3, 2020 · 2 comments
Labels

Comments

@blomer
Copy link

@blomer blomer commented Feb 3, 2020

How?

@xjxckk
Copy link

@xjxckk xjxckk commented Feb 17, 2020

You can use this for a fully working example with automated login (it uses secrets).

#49 (comment)

This is the code for adding a friend:

@client.friends.on("friend_invite")
def accept_invite(user):
    client.friends.add(user)
    if user.name == None:
        print("Added:", user.steam_id)
    else:
        print("Added:", user.name)
    gevent.sleep(2)
    user.send_message("Hi")
@rossengeorgiev
Copy link
Contributor

@rossengeorgiev rossengeorgiev commented Apr 18, 2020

Closing this due to inactivity.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.