This project is a Node.js automation script built with Playwright that redeems a Kingshot gift code for multiple player IDs in sequence. It simulates real user behavior by interacting with the official gift code webpage, handling login, redemption, logout. The script accepts a gift code via a CLI argument, iterates over a list of player IDs, and safely redeems the code while respecting server limits using delays. Requires Node.js and Playwright to run.
- Install dependencies:
npm install - Install Playwright browsers (required once):
npx playwright install - Populate playerId.js with the player IDs you want to redeem the gift code for.
- Run the script with the gift code:
npm run redeem -- --giftcode=XXXXX
Note that there has been cases where redeeming too quickly after the code has been release will "redeem" the code but will not show up in the mail. In cases like these try re-running the script at a later time for it to show up in the mail. Recommended to run the script around an hour of a new gift code releasing