🏴‍☠️ Collection of bash scripts to farm cards on op-tcg website
Find a file
2025-11-25 12:19:21 +01:00
auth refactor: massive refactor + organize + add .env file + new quest scripts 2025-11-12 13:37:23 +01:00
quests chore: add 2s sleep between quest actions to avoid rate limiting 2025-11-20 10:51:52 +01:00
users chore: fix start-quest + add new scripts 2025-11-16 10:28:19 +01:00
.env refactor: massive refactor + organize + add .env file + new quest scripts 2025-11-12 13:37:23 +01:00
.gitignore feat: add new script + improve existing ones 2025-10-26 07:12:01 +01:00
auto-open-boosters.sh feat: send notif when auto-open-booster is done 2025-11-25 12:19:21 +01:00
auto-seller.sh fix: auto-seller was broken 2025-11-13 13:17:49 +01:00
bash-colors.sh fix: adjust scripts 2025-10-26 18:52:05 +01:00
boosters.sh fix: auto-seller was broken 2025-11-13 13:17:49 +01:00
load-env.sh refactor: massive refactor + organize + add .env file + new quest scripts 2025-11-12 13:37:23 +01:00
README.md docs: update README 2025-10-30 16:53:05 +01:00

🏴‍☠️ op-tcg-auto-scripts

Collection of bash scripts to farm cards on op-tcg website

Setup

⚠️ Required

These dependencies are required for all scripts to function properly:

🌈 Optional

These dependencies are only for making things prettier:

Note

With a tiny bit of tweaking, you can remove all usages of gum, figlet and lolcat and the script will continue working well.

Usage

Two automatic scripts:

The other scripts are sub-scripts that are called by the two main scripts.

🃏 auto-open-boosters.sh

  1. Open auto-open-boosters.sh
  2. Set PACK_ID to the pack you want to farm
  3. Run:
bash auto-open-boosters.sh

🃏 auto-seller.sh

  1. Simply run and it will do all the work for you:
bash auto-seller.sh

Note

Some info on how it behaves:

  • Automatically sells cards of the following rarities: common, uncommon, rare, leader, super_rare
  • Sells card by sorting them by most profit ((.quantity - 1) * .sell_price)
  • Stops selling when profit of a sell order is not greater than 10
  • Will always keep at least one copy of any given card (imposed by the op-tcg server)

Wait and Rate limiting

Both automatic scripts rely on a very specific timeout between automated actions:

  • WAIT_LONG: Based on per-hour action limit
  • WAIT_MEDIUM Based on per-minute action limit
  • WAIT_LOW Based on min delay action limit

The longer the wait, the slower the script will execute. But if you do things slowly, you also reduce the chances of the server imposing rate limiting on you. If the server deems you too suspicious, your account can get blocked for some time.

If you stick to WAIT_LONG, you should be able to run these scripts forever without the server detecting anything.

If you want to switch gears, it's at your own risk 💀

image