Archived
1
0
Fork 0

no printing

This commit is contained in:
Lukas Winkler 2019-10-02 18:00:39 +02:00
parent 891ce89d2b
commit c81a7216b7
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -16,7 +16,6 @@ s = requests.Session()
def notify(text):
print(text)
bot = telegram.Bot(token=telegram_token)
message = "🌩️🌪️🌀\n" + text
bot.sendMessage(chat_id=telegram_chat_id, text=message)
@ -32,7 +31,6 @@ for day in ["heute", "morgen", "uebermorgen"]:
if text:
notify(text)
cache[day] = text
print(text)
with open("cache.json", "w") as f:
json.dump(cache, f)