add support for 'today'

it's actually every day
main
EmaMaker 2021-02-09 09:53:14 +01:00
parent 0f606ccf5d
commit bf27ee95bb
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import schedule
import browser_manager
def setup_schedule():
scheduleMeeting("friday", "21:20", "21:22", "https://meet.google.com/jqn-fgav-aad")
scheduleMeeting("today", "08:29", "08:35", "https://meet.google.com/wys-xcee-kmi")
def scheduleMeeting(day, startHour, endHour, link):
@ -28,3 +28,6 @@ def scheduleMeeting(day, startHour, endHour, link):
elif str(day).lower() == "sunday":
schedule.every().sunday.at(startHour).do(browser_manager.joinMeeting, link)
schedule.every().sunday.at(endHour).do(browser_manager.hangUpMeeting)
elif str(day).lower() == "today":
schedule.every().day.at(startHour).do(browser_manager.joinMeeting, link)
schedule.every().day.at(endHour).do(browser_manager.hangUpMeeting)