docs: add comprehensive testing and Discord bot setup guide

Co-authored-by: aider (openai/unsloth/Qwen3-Coder-Next) <aider@aider.chat>
This commit is contained in:
Your Name
2026-02-06 18:02:34 +01:00
parent 7016c3b3ec
commit 28f8676621
5 changed files with 130 additions and 0 deletions

34
!receipts Normal file
View File

@@ -0,0 +1,34 @@
## Troubleshooting
### Bot doesn't respond to commands
- Make sure MESSAGE CONTENT INTENT is enabled in the Discord Developer Portal
- Check that the bot has the correct permissions in the server
### PDF parsing fails
- Ensure the PDF is text-based (not scanned images)
- Check the PDF file is not corrupted
- Verify pdfplumber is installed correctly
### Database errors
- Delete the `grocery_receipts.db` file to reset the database
- The database will be recreated automatically on next run
### Bot can't connect to Discord
- Verify your bot token is correct
- Check your internet connection
- Ensure the bot has been added to your server with correct permissions
## Expected Output
When a PDF receipt is successfully processed, you should see:
- A confirmation message in Discord: "Receipt 'filename.pdf' processed! Found X items."
- A new entry in the `receipts/` folder
- New entries in the database (visible via `!receipts` command)
## Next Steps
Once the basic functionality is working:
- Try uploading different receipt formats
- Test with various store names and product combinations
- Experiment with the price comparison features