TobiasPankner / Teams-Auto-Joiner

Python script to automatically join Microsoft Teams meetings.
GNU General Public License v3.0
530 stars 184 forks source link

Joining even if the meeting is blacklisted #48

Open ntaraujo opened 3 years ago

ntaraujo commented 3 years ago

I had a class I didn't want to join, because its optional (support class), so I left "blacklist_meeting_re" set in config.json with a regex syntax that looks like right.

But auto_joiner.py tried to join in that class even confirming it was [BLACKLISTED]

Screenshot joiner The print didn't catch the end of that line, but its written

Plantão de Física 2 EMC from 9:30 AM to 10:20 AM 1604665800 [Calendar] [BLACKLISTED]

And after Wating for 23s

Configuration file

{
  "email": "*****",
  "password": "********",

  "run_at_time": "",

  "meeting_mode": 1,
  "organisation_num" : 1,
  "random_delay": true,
  "check_interval": 10,

  "auto_leave_after_min": 60,
  "leave_if_last": true,

  "headless" : false,
  "mute_audio": true,
  "chrome_type": "google-chrome",

  "blacklist": [
    {
      "team_name": "Example Team 1",
      "channel_names": [
        "First Channel to blacklist in this team",
        "Second Channel to blacklist"
      ]
    },
     {
      "team_name": "Blacklist whole team",
      "channel_names": [
      ]
    }
  ],
  "blacklist_meeting_re": "(?i)^(plantão|apoio)"
}

(?i)^(plantão|apoio) catch both expressions (Brazillian Portuguese) with or without capital letters. I put it after some research and testing, should be right even why the [BLACKLISTED] flag appears.

Desktop

Additional context I made some changes to specific needs:

This is probably not the reason for the bug

Why does it happen? Did i do something wrong? Could it be the fact that the meeting is appearing as "Meeting now" instead of "Plantão de Física 2 EMC"?

Thanks in advance

ntaraujo commented 3 years ago

Any help?

TobiasPankner commented 3 years ago

I've looked into it and cannot seem to find the issue, can you please try with a fresh install of the bot to verify it's not the changes you've made?

ntaraujo commented 3 years ago

Thanks for answering

I did what you said with the same config.json. Also made a testing channel called "Teste" and scheduled a meeting called "Plantão de alguma coisa", which i entered in another browser

Same results bro

The bot tried to enter the meeting even after printing "[BLACKLISTED]"

Screenshot from 2020-11-15 15-37-39

TobiasPankner commented 3 years ago

In the screenshot you attached the meeting in the "Teste" channel is not blacklisted but the other one is. Which one did the bot try to join?

ntaraujo commented 3 years ago

Oops, "Teste" is not a channel, is a team. I created a team called "Teste" and schedulled a meeting in the "General" channel. This meeting I called "Plantão de alguma coisa" The channel is the same one that is marked with "[MEETING]" up there

and, omg... I thought that line with "Teste -> General" was just to tell which channel and team the meeting was found on

Is the bot finding the meeting under another name when searching the channels?

There was only one meeting going on at the moment, and by the names, those two are the same

ntaraujo commented 3 years ago

I just retake the test with meeting_mode as 2 and 3

Screenshot from 2020-11-15 20-20-33 with meeting_mode as 3, it just keep looking in calendar

Screenshot from 2020-11-15 20-21-43 with meeting_mode as 2, yes, that happens again