-
Notifications
You must be signed in to change notification settings - Fork 45
Added getPlayerInfo function #69
base: master
Are you sure you want to change the base?
Conversation
Thank's Nez it helped a lot! |
Age is redundant |
@Neztore |
lib/user/getPlayerInfo.js
Outdated
let username = body('.header-title h2').text(); | ||
let joinDate = body('.profile-stats-container .text-lead').text().slice(0,9); | ||
|
||
joinDate = Date.parse(joinDate); |
There was a problem hiding this comment.
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.
@Sloss2003 If you need it for a project, see this fork |
@Neztore I made it myself before i saw it haha |
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
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