-
Notifications
You must be signed in to change notification settings - Fork 5
Friends
The friends system is by far the easiest plug and play friends system that you will find on any scratch extension.
The friends system has 2 arrays for each user, an array of incoming friend requests, and an array of current friends.
You cannot see a list of the friend requests you have sent.

This simply means you haven't logged in yet, When you do login, it will show a list of users on your friends list.

This returns an array of all the usernames of people in your friends list
Example:
[
"wow"
]
This block is pretty self explanatory, it removes the friendship status from both you and the person you unfriended.

This allows you to accept a friend request from a username, adding them to your friends list, and you to theirs

This block allows you to remove a pending friend request from a user

This block allows you to send a friend request to another user.
"Sent Successfully"
Attempted to send a request to someone you are friends with
"Already Friends"
Attempted to send a request to someone you already friend requested
"Already Requested"
Attempted to send a friend request to an account that doesn't exist
"Account Does Not Exist"
Attempted to friend request yourself
"You Need Other Friends :/"

This event block will fire whenever someone else sends you a friend request

This event block will fire whenever someone accepts one of your friend requests

This block returns an array of the incoming friend requests to your account
Example:
[
"constellinux"
]
Put the username of someone in this block and it can output a few different things:
When you are friends with someone
"Friend"
When you have a request from someone
"Requested"
Otherwise
"Not Friend"

This block simply tells you how many friends that you have