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.
- Host: GitHub
- URL: https://github.com/harshil21/lazy-meets
- Owner: harshil21
- License: apache-2.0
- Created: 2021-06-21T09:21:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-29T07:08:37.000Z (about 4 years ago)
- Last Synced: 2025-01-25T18:43:12.822Z (8 months ago)
- Topics: automation, bot, microsoft-teams, pyautogui, python
- Language: Python
- Homepage:
- Size: 665 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lazy-Meets
A script which automatically leaves a MS Teams meeting when you're not around.
## 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.