-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.template.py
37 lines (25 loc) · 1000 Bytes
/
config.template.py
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
# Rename this file to config.py and insert your token and password
# Name of the Telgram bot (ending with 'bot', without leading '@')
NAME = ""
# Token of your Telegram bot (Given to you by @BotFather)
TOKEN = ""
# Password you need in order to communiate with the bot
# Must be used like "/start <password>"
PASSWORD = ""
# Long polling timeout in seconds
TIMEOUT = 60 * 5
# The bot will send a push message if any of the conditions succeeds
ENABLE_NOTIFICATIONS = True
# Number of seconds between push messages
NOTIFCATION_INTERVAL = 60
# Maximum cpu percent considered to be normal
NOTIFY_CPU_PERCENT = 75
# Maximum memory percent considered to be normal
NOTIFY_RAM_PERCENT = 75
# Maximum storage percent consider to be normal
NOTIFY_STORAGE_PERCENT = 75
# Name of the Systemctl service, required if you will use /service ... command
SYSTEMCTL_DEFAULT_SERVICE_NAME = ""
# DO NOT EDIT BELOW THIS LINE
# ===========================
API_URL = "https://api.telegram.org/bot" + TOKEN + "/"