1337w0rm / YeetMeet

YEET MEET is a telegram bot which can be deployed to a server, heroku or on your local machine. It can attend your Google Meet and Zoom classes for you. You can also schedule meetings and it will automatically join at the given time.
169 stars 104 forks source link

Feature needed #21

Closed Arnold319 closed 3 years ago

Arnold319 commented 3 years ago

Can you add a feature that after several member exits the bot exits the meeting

1337w0rm commented 3 years ago

It's already there.

Arnold319 commented 3 years ago

Which line

1337w0rm commented 3 years ago

student function in meet.py and something similar in zoom.py I forgot the function name

Arnold319 commented 3 years ago

def joinMeet(context, url_meet):

def students(context):
    try:
        number = WebDriverWait(browser, 2400).until(EC.presence_of_element_located((By.XPATH, '//*[@id="ow3"]/div[1]/div/div[8]/div[3]/div[6]/div[3]/div/div[2]/div[1]/span/span/div/div/span[2]'))).text
    except:
        return
    print(number)
    if(int(number) <10):
        context.bot.send_message(chat_id=userId, text="Your Class has ended!")
        browser.quit()
        execl(executable, executable, "chromium.py")

2400 is the timeout?? That is 40 mins??

1337w0rm commented 3 years ago

Yes. If it doesn't find the element it'll wait till 40mins. If it finds the element in between that time. The program will run fine. I added 2400s wait time because if you're using scheduler and Host doesn't admits you to the meeting. The no of participant element will not be found.

Arnold319 commented 3 years ago

Bro then where is the timeout because after every 20 minutes its shoeing the number i want it ti be set to 10

1337w0rm commented 3 years ago

10 mins ?

Bro then where is the timeout because after every 20 minutes its shoeing the number i want it ti be set to 10

Arnold319 commented 3 years ago

Yes

1337w0rm commented 3 years ago

scroll down you'll find j.run_repeating change the time there

Arnold319 commented 3 years ago

Ok thanks

Arnold319 commented 3 years ago

j.run_repeating(students, 20, 1000) Is 20 in minutes here

Arnold319 commented 3 years ago

Sir can you tell

1337w0rm commented 3 years ago

j.run_repeating(students, 20, 1000)

Change 1000 to 10mins in seconds.The first check here will be after 1000 secs of joining the meeting and after that it'll check it at 20s interval.

Arnold319 commented 3 years ago

j.run_repeating(students, 20, 600)

Arnold319 commented 3 years ago

Is this correct