Automation bot for https://wikigacha.com that automatically opens packs, manages saves, and maintains available pack balance.
The bot uses Patchright, Stealth version of Playwright to interact with the game just like a real user while handling dialogs, backups, and imports automatically bypassing Cloudflare Turnstile.
In this demo you can see the bot running in real time.
At the beginning, the pack balance is reset, allowing the bot to continue opening packs.
Shortly after, the automatic backup system triggers, exporting the current progression to the save file wikigachasave.json so the user can later explore their Collection.
This demonstration highlights the speed of the pack opening process, the pack reset feature, and the auto-save mechanism working together.
wikigacha-bot
├── wikigacha.js
├── package.json
├── package-lock.json
├── Dockerfile
└── patchright_profile/
Want to explore a large collection without running the bot for hours?
You can download my current save file used in the demo.
- Download
wikigachasave.json - Place it at the root of the project
- Delete the
patchright_profilefolder if it already exists - Start the bot — the save will be automatically loaded
git clone https://github.com/yourusername/wikigacha-bot.git
cd wikigacha-botExport your wikigachasave.json at the root of the project
wikigacha-bot
└── wikigachasave.json
npm installnpx patchright install chromenode ./wikigacha.jsThe bot will:
- Open the browser
- Navigate to Wikigacha
- Automatically open packs
- Export backups periodically
- Restore saves if needed
The project includes a Dockerfile with a virtual display environment to run the bot in containers.
docker build -t wikigacha-bot .docker run wikigacha-botThis mounts the browser profile so login sessions persist.
🎴 Automatic pack opening
♻️ Auto save / restore system
📦 Backup export every 2 minutes
🤖 Dialog & alert auto-handling
🧠 Smart retry system for navigation
🧀 Infinite pack throught IndexedDB edit
🐳 Docker support with virtual display (WIP)
- Node.js
- Patchright
- Chrome
- Docker
- XVFB for virtual display
