Changing saving behavior for server that is not reachable
This commit is contained in:
parent
898a0ba42d
commit
e0036fa352
2
main.py
2
main.py
|
@ -23,7 +23,7 @@ def runPings():
|
|||
if ping != -1:
|
||||
resTuple = (server['server_id'], True, ping)
|
||||
else:
|
||||
resTuple = (server['server_id'], False, None)
|
||||
resTuple = (server['server_id'], False, ping)
|
||||
telegram.sendMessage(users[server['admin_id']]['telegram_id'], (
|
||||
'Your server {} ({}) is not reachable at the moment. Maybe give it a check.'
|
||||
).format(server['name'], server['hostname']))
|
||||
|
|
Loading…
Reference in New Issue
Block a user