Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Added getPlayerInfo function #69

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Added getPlayerInfo function #69

wants to merge 11 commits into from

Conversation

Neztore
Copy link

@Neztore Neztore commented Nov 19, 2017

Added the getPlayerinfo function

Required arguments: playerID

Returns:
username: Username of target
status: Status of target
blurb: blurb of target
joinDate: Join date of target (Date object)
age: Days since the target user joined ROBLOX.

This is for #56

@bbsquade101
Copy link

Thank's Nez it helped a lot!

@suufi
Copy link
Contributor

suufi commented Nov 21, 2017

Age is redundant
joinDate should return Date object

@sbhadr
Copy link

sbhadr commented Nov 21, 2017

@Neztore
Age and JoinData are virtually the same.
Age calculates how long it's been since said player has joined and JoinDate is the date of which said player joined.
I'd leave it up to the person using the lib to calculate their "age" rather than providing it.

let username = body('.header-title h2').text();
let joinDate = body('.profile-stats-container .text-lead').text().slice(0,9);

joinDate = Date.parse(joinDate);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency throughout the project please use rbx.getDate, which accepts a time zone (and handles daylight savings), and use ROBLOX's main time zone (which is central time). Although this isn't an exact timestamp and it's hard to check which time zone it actually is (ROBLOX can be inconsistent too), the best bet is to just use the same thing as everything else.

@Neztore
Copy link
Author

Neztore commented Dec 3, 2017

@sentanos

@Neztore
Copy link
Author

Neztore commented Jan 14, 2018

@Sloss2003 If you need it for a project, see this fork

@mwalden2004
Copy link

@Neztore I made it myself before i saw it haha

Neztore and others added 6 commits January 14, 2018 20:33
ROBLOX removed the forum. These are no longer relevant.
Added Avatar, Chat, and Party features
Adds features relating to Developer Products and Asset Versions.

Developer Products can now be created and updated via addDeveloperProduct() and updateDeveloperProduct().

The current VersionId of assets can now also be retrieved via getAssetVersionId().
Developer Products and AssetVersionIds
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants