A Discord bot that integrates with the QuickPick API. Built for a client to automatically generate QuickPick links from bet slip images or bet slip text and post them into the corresponding Discord thread.
The bot acts as a bridge between Discord and the QuickPick API. Users start a thread in a designated Discord channel with a bet slip image attached, and the bot passes that thread's data (the text and image) to the QuickPick API, waits for the generated link, and posts it back into the same thread. No manual steps required.
- Language: Python
- Python 3.10+
- A Discord bot token with message content and guild intents enabled
- A QuickPick API key
# Clone the repository
git clone https://github.com/Hurteau101/Bridge_Bot.git
cd bridge-bot
# Create a virtual environment
python -m venv venv
# Activate it
Windows - venv\Scripts\activate | Linux - venv/bin/activate
Create a .env file in the project root:
BOT_TOKEN=your_discord_bot_token
API_KEY=your_quickpick_api_key
ALLOWED_CHANNEL_IDS=123456789,987654321
ERROR_BOT_WEBHOOK=https://discord.com/api/webhooks/...
python bot.py- A user creates a thread (with an image attached or text of the bet) in an allowed channel
- The bot sends the thread's text and image URLs to QuickPick's
createendpoint - It polls the
statusendpoint every few seconds until the request completes - The generated link is posted in the thread, and the placeholder message is removed
- Any failures are logged to an error-monitoring webhook with the relevant context