diff --git a/run.py b/run.py index 03d5843..3d57e3d 100644 --- a/run.py +++ b/run.py @@ -7,6 +7,7 @@ import json from config import updater from config import bot +os.environ['TZ'] = 'Europe/Berlin' logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) @@ -81,7 +82,8 @@ def sendAudio(a, b): a.send_message(chat_id=user["chatId"], text='Der frühe Vogel fängt den Wurm, und hier ist deine motivation für heute:') a.send_audio(chat_id=user["chatId"], audio=open('mp3/'+day+'.mp3', 'rb')) else: - a.send_message(chat_id=user["chatId"], text='Für heute habe ich keine Motivierende nachricht gefunden, das wird bestimmt ein scheiß tag :(') + for user in users: + a.send_message(chat_id=user["chatId"], text='Für heute habe ich keine Motivierende nachricht gefunden, das wird bestimmt ein scheiß tag :(') if not os.path.isdir("pv/sendDays"):