NOW WORKING, made a new version of it, the bellow instructions are still up-to-date
Hi everyone, im Rui Oliveira (aka Hacklason/Hackerino), a newbie developer.
I wrote this PHP "API" that gets player's data with r6tab API, filters the data for human readable text and forwards the results to Nightbot.
This server-side script is making use of Nightbot’s dynamic response system (mostly $(urlfetch)) with which you are able to fetch the resources forwarded by my API.
This API will not save any data!
UPDATE: The source code is now public! (this is the V2) Click here to check out the repo
How to add commands to Nightbot
With chat:
or```!addcom !command_name command_response```With interface:Check out nightbot's interface.Here's what you need to add to a Nightbot command to get your R6 Rank (current season):With name:```$(urlfetch https://ruioliveira.xyz/r6api/playerdata.php?p_name=YourR6NameHere&platform=YourPlatformHere®ion=YourRegionHere&command=rank)```With id:```$(urlfetch https://ruioliveira.xyz/r6api/playerdata.php?p_id=YourR6IdHere&platform=YourPlatformHere®ion=YourRegionHere&command=rank)```Full command example:```!commands add !r6rank $(urlfetch https://ruioliveira.xyz/r6api/playerdata.php?p_name=YourR6NameHere&platform=YourPlatformHere®ion=YourRegionHere&command=rank)```Output Example:```Region: EU | Rank: Gold IV | MMR: 2686 | Platform: UPLAY, Updated 21 hours ago, more info in https://r6tab.com/fbd7856f-2210-46a8-ae49-286aff3f2849```Output preview in twitch:* Adjust the URL parameters to fit your purposes.* ?platform= *(xbox, ps4 or uplay.)***xbox** for Xbox One,





