Simple Cloudflare Worker that exposes an API to change a player's rank in a group on the Roblox site.
Handy for use in games because Roblox still doesn't expose an API for changing player roles.
- Set appropriate configs in
wrangler.toml
. See the Cloudflare Workers Docs for more information wrangler publish
to create the worker on Cloudflare- Create 2 encrypted environment variables for the worker. One called
ROBLOX_COOKIE
that is set to the .ROBLOSECURITY cookie for the bot account - The other secret should be called
AUTH_TOKEN
. This is used to authenticate requests to the worker and should be a long random string. Pass this in thetoken
header when making requests to the worker. - You're good to go.