Skip to content

add friend #398

Answered by everlyy
Tom-jm03 asked this question in Q&A
Jul 28, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can use the SteamFriendlist to manage everything friend stuff related. If you want to add someone after they've sent a friend request you can do something like

from steam.client.builtins.friends import SteamFriendlist

friendslist = SteamFriendlist(sc) # sc is your SteamClient

@friendslist.on("friend_invite")
def fl_friend_invite(user):
	friendslist.add(user)

Hope this helps!!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tom-jm03
Comment options

Answer selected by Tom-jm03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants