Teams-Auto-Joiner icon indicating copy to clipboard operation
Teams-Auto-Joiner copied to clipboard

Bot joined the meeting in wrong time

Open H4D53 opened this issue 2 years ago • 3 comments

Describe the bug A meeting should be started at 2:30 PM but the bot joined it at 12:25 PM and left the meeting because last attendee in meeting, and never join the meeting at right time anymore.

To Reproduce

[12:25:53] Looking for new meetings
Found meetings:
        ITP4121 Cloud and Data Centre Workplace Practices Workshop from 10:30 AM to 1:00 PM 1644373740 [Calendar]
        LAN4101 from 2:30 PM to 5:30 PM 1644388200 [Calendar]
Left Meeting: ITP4121 from 10:30 AM to 1:00 PM
Microphone off
Please update the random_delay in config.json file as per latest instructions in README
Wating for 10s
Joined meeting: LAN4101 from 2:30 PM to 5:30 PM
Failed to open meeting member page
[25740:24728:0209/122610.046:ERROR:webrtc_video_engine.cc(3446)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
[25740:24728:0209/122610.046:ERROR:webrtc_video_engine.cc(3446)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
[25740:24728:0209/122610.047:ERROR:webrtc_video_engine.cc(3446)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
[25740:24728:0209/122610.047:ERROR:webrtc_video_engine.cc(3446)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
[25740:24728:0209/122610.048:ERROR:webrtc_video_engine.cc(3446)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
[25740:24728:0209/122610.048:ERROR:webrtc_video_engine.cc(3446)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
[25740:24728:0209/122610.048:ERROR:webrtc_video_engine.cc(3446)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0

[12:26:39] Looking for new meetings
Found meetings:
        ITP4121 Cloud and Data Centre Workplace Practices Workshop from 10:30 AM to 1:00 PM 1644373740 [Calendar]
        LAN4101 from 2:30 PM to 5:30 PM 1644388200 [Calendar]
Current members in meeting: 1
Total members of the meeting: 1
Last attendee in meeting
Left Meeting: LAN4101 from 2:30 PM to 5:30 PM

[12:27:16] Looking for new meetings
Found meetings:
        ITP4121 Cloud and Data Centre Workplace Practices Workshop from 10:30 AM to 1:00 PM 1644373740 [Calendar]

[12:27:46] Looking for new meetings
Found meetings:
        ITP4121 Cloud and Data Centre Workplace Practices Workshop from 10:30 AM to 1:00 PM 1644373740 [Calendar]

[12:28:17] Looking for new meetings
Found meetings:
        ITP4121 Cloud and Data Centre Workplace Practices Workshop from 10:30 AM to 1:00 PM 1644373740 [Calendar]

Expected behavior leave the meeting when ITP4121 ( or other meetings) at the right time or threshold triggered, keep waiting/looking for a new meeting on the calendar and join in the right time

Screenshots image image

Configuration file `{ "email": "", "password": "",

"run_at_time": "10:29",

"discord_webhook_url" : "",

"meeting_mode": 3, "organisation_num" : -1, "random_delay": true, "check_interval": 30,

"join_message": "",

"auto_leave_after_min": -1, "leave_if_last": true, "leave_threshold_number": "", "leave_threshold_percentage": "58", "pause_search": false,

"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": "" }`

Desktop (please complete the following information):

  • OS: Windows 10 Version 1909 (OS build 18363.1556)
  • Browser Chrome
  • Version 97.0.4692

Additional context console output.txt Here is the whole console output when the bot started at 10:29 AM as setting to 14:46 PM before I stopped the bot.

H4D53 avatar Feb 09 '22 07:02 H4D53

Thanks for the great description!
The way the bot checks for active calendar meeting is by searching for the "Join" button.
Somehow this button showed up early.

Sadly, I cannot really reproduce/fix issues regarding calendar meetings right now because I do not have a paid MS teams account.

If you find a solution, you are welcome to create a merge request.

TobiasPankner avatar Feb 09 '22 07:02 TobiasPankner

I see, but can the bot join the same meeting again when it has left before, This could be a temporary solution for calendar only.

P.S. you could try azure free trial with Azure AD and M365 trial should be able to use calendar

H4D53 avatar Feb 09 '22 08:02 H4D53

You can try your proposed solution locally if you want.

If you comment out line 467 of the script (newest version) it doesn't add the previous meeting to a blacklist.

TobiasPankner avatar Feb 09 '22 08:02 TobiasPankner