An API bot that automatically ranks members in your Roblox group based on configurable rules.
š Add ROBLOX_API_KEY here: https://www.val.town/x/jamesdopp/API/environment-variables?key=ROBLOX_API_KEY
š Add ROBLOX_GROUP_ID here: https://www.val.town/x/jamesdopp/API/environment-variables?key=ROBLOX_GROUP_ID
š Add API_SECRET here (optional, protects write endpoints): https://www.val.town/x/jamesdopp/API/environment-variables?key=API_SECRET
The auto-rank.ts interval runs on a schedule. Configure it in the Val Town UI or via the interval settings.
Returns group details and available endpoints.
Returns all roles in your group with their IDs and names.
Returns all members with their user IDs, current roles, and join dates.
{ "userId": "123456789", "roleId": "role_id_from_/roles" }
Returns all configured auto-ranking rules.
{ "sourceRoleId": "current_role_id", "targetRoleId": "target_role_id", "minDaysInGroup": 7 }
This means: If a member has the source role and has been in the group for 7+ days, promote them to the target role.
Runs the auto-ranking engine immediately and returns results.
Returns recent ranking actions.
minDaysInGroup (highest first)GET /roles to find your role IDsPOST /rules with the "Member" role as source, "Veteran" role as target, and minDaysInGroup: 7main.ts ā HTTP API (Hono) ā manual ranking, rules, logs
auto-rank.ts ā Interval ā scheduled auto-promotion engine
roblox.ts ā Roblox Open Cloud API helper
db.ts ā SQLite for rules & logs