Skip to content

Commit fd4e9d0

Browse files
committed
Temperory Fix to cookie error
1 parent 3faf482 commit fd4e9d0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bot/zoom.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def students(context):
2828
browser.quit()
2929
execl(executable, executable, "chromium.py")
3030
try:
31+
"""
3132
if os.path.exists("zoom.pkl"):
3233
cookies = pickle.load(open("zoom.pkl", "rb"))
3334
browser.get('https://accounts.google.com/o/oauth2/auth/identifier?client_id=717762328687-iludtf96g1hinl76e4lc1b9a82g457nn.apps.googleusercontent.com&scope=profile%20email&redirect_uri=https%3A%2F%2Fstackauth.com%2Fauth%2Foauth2%2Fgoogle&state=%7B%22sid%22%3A1%2C%22st%22%3A%2259%3A3%3Abbc%2C16%3Afad07e7074c3d678%2C10%3A1601127482%2C16%3A9619c3b16b4c5287%2Ca234368b2cab7ca310430ff80f5dd20b5a6a99a5b85681ce91ca34820cea05c6%22%2C%22cdl%22%3Anull%2C%22cid%22%3A%22717762328687-iludtf96g1hinl76e4lc1b9a82g457nn.apps.googleusercontent.com%22%2C%22k%22%3A%22Google%22%2C%22ses%22%3A%22d18871cbc2a3450c8c4114690c129bde%22%7D&response_type=code&flowName=GeneralOAuthFlow')
@@ -36,14 +37,14 @@ def students(context):
3637
else:
3738
context.bot.send_message(chat_id=userId, text="You're not logged in! Send /zlogin to login to zoom")
3839
return
39-
40+
"""
4041
browser.get('https://zoom.us/wc/join/'+ url_meet)
41-
time.sleep(5)
42+
time.sleep(10)
4243
browser.save_screenshot("ss.png")
4344
context.bot.send_chat_action(chat_id=userId, action=ChatAction.UPLOAD_PHOTO)
4445
mid = context.bot.send_photo(chat_id=userId, photo=open('ss.png', 'rb'), timeout = 120).message_id
4546
os.remove('ss.png')
46-
47+
time.sleep(10)
4748
browser.find_element_by_xpath('//*[@id="joinBtn"]').click()
4849
time.sleep(5)
4950
try:
@@ -69,7 +70,7 @@ def students(context):
6970
WebDriverWait(browser, 1000).until(EC.element_to_be_clickable((By.XPATH,'//*[@id="wc-container-right"]/div/div[2]/div/button[2]'))).click()
7071

7172
context.bot.send_chat_action(chat_id=userId, action=ChatAction.TYPING)
72-
context.bot.send_message(chat_id=userId, text="Attending you lecture. You can chill :v")
73+
context.bot.send_message(chat_id=userId, text="Attending you to lecture. You can chill :v")
7374
logging.info("STAAAAPH!!")
7475

7576

0 commit comments

Comments
 (0)