-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.py
More file actions
43 lines (35 loc) · 1.2 KB
/
config.example.py
File metadata and controls
43 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import os
from dotenv import load_dotenv
load_dotenv()
def _require(key: str) -> str:
value = os.getenv(key)
if not value:
raise ValueError(f"Missing required environment variable: {key}")
return value.strip()
# Bot
TELEGRAM_BOT_TOKEN = _require("TELEGRAM_BOT_TOKEN")
# Email / SMTP
SMTP_EMAIL = _require("SMTP_EMAIL")
SMTP_PASSWORD = _require("SMTP_PASSWORD")
# Optional AI keys (bot can also use user-provided keys from DB)
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY")
# Database
MONGODB_URI = _require("MONGODB_URI")
# ── Personal profile (edit here to personalise the outreach emails) ───────────
PROFILE = {
"name": "Your Name",
"phone": "+1234567890",
"linkedin": "https://www.linkedin.com/in/yourprofile/",
"github": "https://github.com/yourusername",
"university": "Your University",
"year": "final year undergraduate",
}
SIGNATURE = (
f"\\n\\nBest regards,\\n"
f"{PROFILE['name']}\\n"
f"Contact: {PROFILE['phone']}\\n"
f"LinkedIn: {PROFILE['linkedin']}\\n"
f"GitHub: {PROFILE['github']}"
)