1.5 KiB
1.5 KiB
Testing Guide: Grocery Receipt Tracker
This guide will help you set up and test the Grocery Receipt Tracker with Discord integration.
Prerequisites
- Python 3.8 or higher
- Discord account
- Basic understanding of command line operations
Step 1: Create a Discord Bot
- Go to the Discord Developer Portal
- Click "New Application" and give it a name (e.g., "Grocery Receipt Tracker")
- Navigate to the "Bot" section in the left sidebar
- Click "Add Bot"
- Under "Privileged Gateway Intents", enable:
- MESSAGE CONTENT INTENT
- SERVER MEMBERS INTENT
- Click "Reset Token" and copy your bot token
- Save the token securely (you'll need it for the application)
Step 2: Add the Bot to Your Server
- In the Developer Portal, go to "OAuth2" > "URL Generator"
- Select these scopes:
botapplications.commands
- Under "Bot Permissions", select:
Send MessagesAttach FilesRead Message History
- Copy the generated URL and open it in your browser
- Select the server where you want to add the bot
- Click "Authorize"
Step 3: Set Up the Project
- Clone or download the project files
- Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate - Install dependencies:
pip install -r requirements.txt
Step 4: Configure Environment Variables
Create a .env file in the project root with your Discord bot token: