feat: enhance gitignore and bot prefix handling

- Updated .gitignore to properly exclude Python cache files and environment variables
- Modified bot.py to improve prefix case handling for better command recognition
- Refactored mail.py to streamline feedback email generation and database interaction
- Added environment variable loading in mail.py for better configuration management
This commit is contained in:
2026-06-01 14:14:52 +00:00
parent 3e6410d112
commit 4b07ca86b9
10 changed files with 166 additions and 147 deletions
+19 -1
View File
@@ -1,5 +1,5 @@
# Byte-compiled / optimized / DLL files
*__pycache__/
__pycache__/
*.py[cod]
*$py.class
@@ -7,10 +7,12 @@
venv/
env/
ENV/
.venv/
# Environment variables
.env
.env.local
.env.*.local
# IDE
.vscode/
@@ -27,6 +29,7 @@ config.json
token.txt
logs/
*.log
*.log.*
# Database
*.db
@@ -41,3 +44,18 @@ logs/
# Cache files
*.cache
__pycache__/
# Python
*.pyc
.pytest_cache/
.coverage
.pytest_cache/
.mypy_cache/
# Web interface
web/static/uploads/
web/static/cache/
# System
.DS_Store
._*