An open API service indexing awesome lists of open source software.

https://github.com/harshil21/lazy-meets

A script which automatically leaves a MS Teams meeting when you're not around.
https://github.com/harshil21/lazy-meets

automation bot microsoft-teams pyautogui python

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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

![GitHub repo size](https://img.shields.io/github/repo-size/harshil21/Lazy-Meets)

## Installing

Clone the repository and install the ~~one~~ two requirements:
``` bash
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
``` bash
pip install pytesseract
```
[Download Google OCR for Windows](https://github.com/UB-Mannheim/tesseract/wiki#tesseract-installer-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:

``` bash
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.