forked from wastaken7/PTNotifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-config.py
More file actions
26 lines (24 loc) · 752 Bytes
/
example-config.py
File metadata and controls
26 lines (24 loc) · 752 Bytes
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
from typing import Any
SETTINGS: dict[str, Any] = {
"TELEGRAM_BOT_TOKEN": "",
"TELEGRAM_CHAT_ID": "",
"DISCORD_WEBHOOK_URL": "",
# Seconds between checks
# Make sure not to overload trackers
# It might get you banned!
# Minimum is 900 (15 minutes)
"CHECK_INTERVAL": 1800,
# Only available for some trackers
"MARK_AS_READ": True,
# HTTP request timeout in seconds
# Default is 30 seconds
# Increase if you have a slow connection or the tracker is slow
"TIMEOUT": 30.0,
# Minimum delay in seconds between requests
# Default is 5 seconds
"REQUEST_DELAY": 5.0,
}
API_TOKENS: dict[str, str] = {
# Although Orpheus supports API, you still need to export cookies.
"Orpheus": "",
}