Mon Jun 10 04:44:12 PM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-10 16:44:12 +02:00
parent 7af0a4e7fd
commit 3dc765ce26
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ let
bot = telegram.Bot(token="381718873:AAElFmI2BDjumCehhWicuksE0vutrPSkoGA") bot = telegram.Bot(token="381718873:AAElFmI2BDjumCehhWicuksE0vutrPSkoGA")
chat_id = 125754925 chat_id = 125754925
hostname = socket.gethostname() hostname = socket.gethostname()
await bot.send_message(chat_id, f"{hostname} encountered an error in the service: {sys.argv[1]}") await bot.send_message(
chat_id,
f"{hostname} encountered an error in the service: {sys.argv[1]}"
)
await bot.send_message(chat_id, text) await bot.send_message(chat_id, text)