Overview
This project combines a web scraper with a Discord bot to automatically surface SHiFT codes for Borderlands 4. When a user triggers the bot on Discord, it scrapes the latest codes and returns them instantly — no manual hunting required.
Features
- On-demand scraping triggered by Discord command
- Parses and formats code lists for readability
- Error handling for network / parse failures
- Lightweight — runs on a small VPS or home server
Tech Stack
Golang
Discord Go
GoColly
Request/Response
Challenges & Learnings
Navigating the structure of a dynamically rendered page required careful selector targeting. Integrating the scraper output into Discord's message format taught clean separation of concerns between data retrieval and presentation layers.