No description
Find a file
PokeBot User 92b4018d29 fix: second audit pass with comprehensive testing
- Fixed Discord monitor method call (start -> start_monitor)
- Updated aiohttp timeout compatibility (Timeout -> ClientTimeout)
- Added comprehensive test suite for all components
- Validated CLI interface and argument parsing
- Tested live endpoints with error handling
- Verified async code paths work correctly
- All 28 tests passing at 100% success rate
2026-06-14 15:53:08 -07:00
buyers fix: comprehensive codebase audit and fixes 2026-06-14 15:39:00 -07:00
config fix: comprehensive codebase audit and fixes 2026-06-14 15:39:00 -07:00
core fix: second audit pass with comprehensive testing 2026-06-14 15:53:08 -07:00
database Initial commit: Fully featured pokemon buying bot with multi-retailer support, discord integration, proxy rotation, and anti-detection measures 2026-06-14 13:53:09 -07:00
monitor fix: second audit pass with comprehensive testing 2026-06-14 15:53:08 -07:00
proxy fix: second audit pass with comprehensive testing 2026-06-14 15:53:08 -07:00
static Initial commit: Fully featured pokemon buying bot with multi-retailer support, discord integration, proxy rotation, and anti-detection measures 2026-06-14 13:53:09 -07:00
utils fix: comprehensive codebase audit and fixes 2026-06-14 15:39:00 -07:00
.gitignore Initial commit: Fully featured pokemon buying bot with multi-retailer support, discord integration, proxy rotation, and anti-detection measures 2026-06-14 13:53:09 -07:00
config.ini.example fix: comprehensive codebase audit and fixes 2026-06-14 15:39:00 -07:00
main.py fix: comprehensive codebase audit and fixes 2026-06-14 15:39:00 -07:00
README.md Initial commit: Fully featured pokemon buying bot with multi-retailer support, discord integration, proxy rotation, and anti-detection measures 2026-06-14 13:53:09 -07:00
requirements.txt Initial commit: Fully featured pokemon buying bot with multi-retailer support, discord integration, proxy rotation, and anti-detection measures 2026-06-14 13:53:09 -07:00
test_bot.py fix: comprehensive codebase audit and fixes 2026-06-14 15:39:00 -07:00

""" PokeBot - Advanced Pokemon Card Buying Bot

Features

  • Multi-Retailer Support: Target, Amazon, Walmart, Best Buy, Pokemon Center
  • Real-time Monitoring: Check availability every second
  • Discord Integration: Monitor channels for restock alerts
  • Proxy Rotation: Automatic IP rotation to avoid bans
  • Anti-Detection: Human-like behavior simulation
  • Auto Checkout: Complete purchases automatically
  • Notifications: Slack, Telegram, Email, Pushover alerts
  • Session Management: Save/load browser sessions
  • CAPTCHA Solving: Integrated CAPTCHA solver

Installation

# Clone repository
git clone https://github.com/user/pokebot.git
cd pokebot

# Create virtual environment
python -m venv venv
venv\Scripts\activate  # Windows
source venv/bin/activate  # Mac/Linux

# Install dependencies
pip install -r requirements.txt

# Install Playwright browsers
playwright install chromium

Configuration

  1. Copy the example config file:

    cp config.ini.example config.ini
    
  2. Edit config.ini and fill in your details:

    • Retailer login credentials
    • Payment information
    • Discord token and channels
    • Proxy API details
    • Notification settings

Usage

Start the bot (all retailers)

python main.py start --products "Charizard Base Set" "Pokemon Cards"

Start with specific retailers

python main.py start --retailers target,amazon,walmart --products "Pokemon Cards"

Monitor a specific product

python main.py monitor --product "Shadow Realm Charizard" --retailer pokemon_center

Buy immediately

python main.py buy --product "Pokemon Cards" --quantity 4 --retailer target

Test configuration

# Test proxy connection
python main.py test --proxy

# Test retailer login
python main.py test --login target

Project Structure

pokeBot/
├── main.py                 # Entry point
├── config.ini              # Configuration file
├── requirements.txt        # Python dependencies
│
├── config/
│   └── settings.py         # Configuration management
│
├── core/
│   ├── bot_engine.py       # Main bot engine
│   └── monitor_manager.py # Product monitoring
│
├── monitor/
│   ├── base_monitor.py     # Abstract monitor class
│   ├── discord_monitor.py  # Discord integration
│   ├── target_monitor.py   # Target-specific monitor
│   ├── amazon_monitor.py   # Amazon-specific monitor
│   ├── walmart_monitor.py  # Walmart-specific monitor
│   ├── bestbuy_monitor.py  # Best Buy-specific monitor
│   └── pokemon_center_monitor.py  # Pokemon Center monitor
│
├── buyers/
│   ├── base_buyer.py       # Abstract buyer class
│   ├── factory.py          # Buyer factory
│   ├── target_buyer.py     # Target buyer
│   ├── amazon_buyer.py     # Amazon buyer
│   ├── walmart_buyer.py    # Walmart buyer
│   ├── bestbuy_buyer.py    # Best Buy buyer
│   └── pokemon_center_buyer.py  # Pokemon Center buyer
│
├── proxy/
│   ├── manager.py          # Proxy rotation system
│   └── rotator.py           # Proxy utilities
│
├── utils/
│   ├── anti_detection.py  # Anti-detection measures
│   ├── notifications.py   # Multi-channel notifications
│   ├── logger.py           # Logging utilities
│   └── cookie_manager.py  # Session management
│
├── database/
│   └── models.py           # Database models
│
├── logs/                   # Application logs
│
└── static/
    ├── cookies/            # Saved session cookies
    └── user_profiles/      # Browser profiles

License

MIT License - See LICENSE file