This commit is contained in:
Kekskurse 2019-06-21 15:25:27 +02:00
parent 1b1e258172
commit 7848968c2d
1 changed files with 3 additions and 1 deletions

4
run.py
View File

@ -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"):