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:
@@ -1,17 +0,0 @@
|
||||
import requests
|
||||
|
||||
url = "https://tarot-cards1.p.rapidapi.com/tarot/"
|
||||
|
||||
querystring = {"minor":"2","major":"2"}
|
||||
|
||||
headers = {
|
||||
"x-rapidapi-key": "915784f37bmsh01add6a88639e60p15c4aajsnbaee391c4ef7",
|
||||
"x-rapidapi-host": "tarot-cards1.p.rapidapi.com"
|
||||
}
|
||||
|
||||
try:
|
||||
response = requests.get(url, headers=headers, params=querystring, timeout=10)
|
||||
response.raise_for_status()
|
||||
print(response.json())
|
||||
except requests.RequestException as e:
|
||||
print(f"Request failed: {e}")
|
||||
Reference in New Issue
Block a user