Compare commits
No commits in common. "d6668d255df8620662f687c92a86029a8dad94d4" and "a46fa83505c1b96bdaa67d4f4e2c243a0bce14c8" have entirely different histories.
d6668d255d
...
a46fa83505
|
@ -58,32 +58,32 @@ def send_notification():
|
||||||
if now.strftime("%H:%M") == "07:50":
|
if now.strftime("%H:%M") == "07:50":
|
||||||
for i in find_document:
|
for i in find_document:
|
||||||
for b in array_username:
|
for b in array_username:
|
||||||
bot.send_message(b, str(i['School Subject'][today][0]['Room']) + ", " + i['School Subject'][today][0]['Teacher'] + ", " + i['School Subject'][today][0]['Subject'] + "\n" + "Successiva: " + str(i['School Subject'][today][1]['Room']) + ", " + i['School Subject'][today][1]['Teacher'] + ", " + i['School Subject'][today][1]['Subject'])
|
bot.send_message(b, str(i['School Subject']['Monday'][0]['Room']) + ", " + i['School Subject']['Monday'][0]['Teacher'] + ", " + i['School Subject']['Monday'][0]['Subject'] + "\n" + "Successiva: " + str(i['School Subject']['Monday'][1]['Room']) + ", " + i['School Subject']['Monday'][1]['Teacher'] + ", " + i['School Subject']['Monday'][1]['Subject'])
|
||||||
recheck()
|
recheck()
|
||||||
elif now.strftime("%H:%M") == "08:50":
|
elif now.strftime("%H:%M") == "8:50":
|
||||||
for i in find_document:
|
for i in find_document:
|
||||||
for b in array_username:
|
for b in array_username:
|
||||||
bot.send_message(b, str(i['School Subject'][today][1]['Room']) + ", " + i['School Subject'][today][1]['Teacher'] + ", " + str(i['School Subject'][today][1]['Subject']) + "\n" + "Successiva: " + str(i['School Subject'][today][2]['Room']) + ", " + i['School Subject'][today][2]['Teacher'] + ", " + i['School Subject'][today][2]['Subject'])
|
bot.send_message(b, str(i['School Subject']['Monday'][1]['Room']) + ", " + i['School Subject']['Monday'][1]['Teacher'] + ", " + str(i['School Subject']['Monday'][1]['Subject']) + "\n" + "Successiva: " + str(i['School Subject']['Monday'][2]['Room']) + ", " + i['School Subject']['Monday'][2]['Teacher'] + ", " + i['School Subject']['Monday'][2]['Subject'])
|
||||||
recheck()
|
recheck()
|
||||||
elif now.strftime("%H:%M") == "09:50":
|
elif now.strftime("%H:%M") == "9:50":
|
||||||
for i in find_document:
|
for i in find_document:
|
||||||
for b in array_username:
|
for b in array_username:
|
||||||
bot.send_message(b, str(i['School Subject'][today][2]['Room']) + ", " + i['School Subject'][today][2]['Teacher'] + ", " + str(i['School Subject'][today][2]['Subject']) + "\n" + "Successiva: " + str(i['School Subject'][today][3]['Room']) + ", " + i['School Subject'][today][3]['Teacher'] + ", " + i['School Subject'][today][3]['Subject'])
|
bot.send_message(b, str(i['School Subject']['Monday'][2]['Room']) + ", " + i['School Subject']['Monday'][2]['Teacher'] + ", " + str(i['School Subject']['Monday'][2]['Subject']) + "\n" + "Successiva: " + str(i['School Subject']['Monday'][3]['Room']) + ", " + i['School Subject']['Monday'][3]['Teacher'] + ", " + i['School Subject']['Monday'][3]['Subject'])
|
||||||
recheck()
|
recheck()
|
||||||
elif now.strftime("%H:%M") == "11:05":
|
elif now.strftime("%H:%M") == "11:05":
|
||||||
for i in find_document:
|
for i in find_document:
|
||||||
for b in array_username:
|
for b in array_username:
|
||||||
bot.send_message(b, str(i['School Subject'][today][3]['Room']) + ", " + i['School Subject'][today][3]['Teacher'] + ", " + str(i['School Subject'][today][3]['Subject']) + "\n" + "Successiva: " + str(i['School Subject'][today][4]['Room']) + ", " + i['School Subject'][today][4]['Teacher'] + ", " + i['School Subject'][today][4]['Subject'])
|
bot.send_message(b, str(i['School Subject']['Monday'][3]['Room']) + ", " + i['School Subject']['Monday'][3]['Teacher'] + ", " + str(i['School Subject']['Monday'][3]['Subject']) + "\n" + "Successiva: " + str(i['School Subject']['Monday'][4]['Room']) + ", " + i['School Subject']['Monday'][4]['Teacher'] + ", " + i['School Subject']['Monday'][4]['Subject'])
|
||||||
recheck()
|
recheck()
|
||||||
elif now.strftime("%H:%M") == "12:05":
|
elif now.strftime("%H:%M") == "12:05":
|
||||||
for i in find_document:
|
for i in find_document:
|
||||||
for b in array_username:
|
for b in array_username:
|
||||||
bot.send_message(b, str(i['School Subject'][today][4]['Room']) + ", " + i['School Subject'][today][4]['Teacher'] + ", " + str(i['School Subject'][today][4]['Subject']) + "\n" + "Successiva: " + str(i['School Subject'][today][5]['Room']) + ", " + i['School Subject'][today][5]['Teacher'] + ", " + i['School Subject'][today][5]['Subject'])
|
bot.send_message(b, str(i['School Subject']['Monday'][4]['Room']) + ", " + i['School Subject']['Monday'][4]['Teacher'] + ", " + str(i['School Subject']['Monday'][4]['Subject']) + "\n" + "Successiva: " + str(i['School Subject']['Monday'][5]['Room']) + ", " + i['School Subject']['Monday'][5]['Teacher'] + ", " + i['School Subject']['Monday'][5]['Subject'])
|
||||||
recheck()
|
recheck()
|
||||||
elif now.strftime("%H:%M") == "13:05":
|
elif now.strftime("%H:%M") == "13:05":
|
||||||
for i in find_document:
|
for i in find_document:
|
||||||
for b in array_username:
|
for b in array_username:
|
||||||
bot.send_message(b, str(i['School Subject'][today][5]['Room']) + ", " + i['School Subject'][today][5]['Teacher'] + ", " + str(i['School Subject'][today][5]['Subject']))
|
bot.send_message(b, str(i['School Subject']['Monday'][5]['Room']) + ", " + i['School Subject']['Monday'][5]['Teacher'] + ", " + str(i['School Subject']['Monday'][5]['Subject']))
|
||||||
recheck()
|
recheck()
|
||||||
elif now.strftime("%H:%M") == "21:00":
|
elif now.strftime("%H:%M") == "21:00":
|
||||||
if tomorrow == "Sunday" or tomorrow == "Saturday":
|
if tomorrow == "Sunday" or tomorrow == "Saturday":
|
||||||
|
|
Loading…
Reference in New Issue