Skip to content

harshil21/Lazy-Meets

Repository files navigation

Lazy-Meets

A script which automatically leaves a MS Teams meeting when you're not around.

GitHub repo size

Installing

Clone the repository and install the one two requirements:

git clone https://github.com/harshil21/Lazy-Meets && pip install -r requirements.txt

Update 13/9/21: You will now most likely also need the pytesseract library to perform OCR.

Installing pytesseract & Google Tesseract

pip install pytesseract

Download Google OCR for Windows (you don't need the training dataset so you can uncheck that. Download size is ~196MB 😔)

Now, make sure that you have already joined a Microsoft Teams meeting. Next, run:

cd "Lazy-Meets" && python main.py
  • You can pass more args, see the help message by running python main.py -h

Congrats! The script will now monitor for changes and automatically leave the meeting when its supposed to!

How it works

The script observes the meeting list every X seconds to get the number of participants currently in the meeting. If Y number of people left the meeting in those X seconds, it leaves the meeting too. This is helpful if you're AFK or just don't like to attend class :P


FAQ:

How is this different from other scripts which claim to do the same thing?

This script allows to you dynamically leave a meeting. Most other scripts only leave at a particular time, which isn't practical since most meetings don't end on the dot. It's also lightweight, and doesn't require computer vision (edit: now needs OCR :/) or massive libraries such as selenium.

Why not just use the Microsoft Teams API?

This uses only a very tiny subset of the API and is hence not worth setting up for such a basic task. It also requires consent of the channel administrator (and we don't want our admins to know about this hehe).

I keep getting a ValueError!

Make sure that you're using dark mode in the latest version of the Teams app. If problems still occur, write an issue here.

Testing

This currently only works with dark mode enabled on Windows. You're welcome to open a PR supporting light mode / other platforms. Since this is entirely hardcoded, many things can go wrong, so support can be limited.

About

A script which automatically leaves a MS Teams meeting when you're not around.

Topics

Resources

License

Stars

Watchers

Forks

Languages