-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconst.py.example
73 lines (55 loc) · 1.75 KB
/
const.py.example
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Used for identify features etc., DO NOT MODIFY
VERSION = "0.4"
# DO NOT MODIFY END
TIME_BETWEEN_CHECK = 10
TIME_BETWEEN_CLEAR = 3600 # An hour
EXPIRY_TIME = 3600 * 6
HTTP_RETRY = 3
BASE_JSON_DIR = "jsons"
LOGS_DIR = "logs"
CHANNELS_JSON = "channels.json"
FETCHED_JSON = "fetched.json"
# Cookie file for login required streams. You can get your cookie with FF or Chrome extensions like "cookies.txt" (Just check https://addons.mozilla.org/ or https://chrome.google.com/webstore/)
COOKIE = None
# Use multi-IPs for checking. One IP per line. Also make sure that each IP is set as individual address on your interface, IP-Ranges dont work.
IP_POOL = None
# Send to discord on video privated
ENABLE_PRIVATE_CHECK = False
# Callbacks
ENABLED_MODULES = {
"discord": False,
"telegram": False
}
# If you dont know how to create a Discord webhook read here: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
DISCORD_WEBHOOK_URL = None
DISCORD_SEND_FILES = False
TELEGRAM_BOT_TOKEN = None
TELEGRAM_CHAT_ID = None
TELEGRAM_SEND_FILES = False
# On live
ENABLED_MODULES_ONLIVE = {
"discord": False,
"telegram": False,
"pushalert": False,
"fcm": False
}
DISCORD_WEBHOOK_URL_ONLIVE = None
TELEGRAM_BOT_TOKEN_ONLIVE = TELEGRAM_BOT_TOKEN
TELEGRAM_CHAT_ID_ONLIVE = None
PUSHALERT_API_KEY = None
PUSHALERT_ICON = None
FCM_API_KEY = None
FCM_ICON = None
FCM_TARGET = "/topic/all"
# ====== Chat Downloader ====== #
# `pip install chat_downloader`
CHAT_DIR = None
CHAT_INACTIVITY_DURATION = 30
CHAT_BUFFER_TIME = 1
CHAT_TASK_CLEAR_INTERVAL = 300
# `pip install brotlipy`
# `pip install zstandard`
CHAT_COMPRESS = None # None, "brotli", "zstd"
# ====== Chat Downloader END ====== #
CALLBACK_AFTER_EXPIRY = False
CHAT_CALLBACK_AFTER_EXPIRY = False