Teams-Auto-Joiner
Teams-Auto-Joiner copied to clipboard
Can we run this script in Linux.
All seems working file until it creates Team object with the Id's that it stuck in the loop and do not return the list of Team objects. Is there any other way around for to run this in linux
PS: I am trying to run this on the cloud and then left it running. But then I found that after getting teams id, it does not recheck after the default time interval
I have not tested on linux, are you running in headless mode? What browser are you using?
"email": "REDACTED",
"password": "REDACTED",
"run_at_time": "",
"meeting_mode": 2,
"organisation_num" : 1,
"random_delay": true,
"check_interval": 60,
"auto_leave_after_min": 60,
"leave_if_last": 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": ""
}
config.json which I am using right now.
Everything working fine until teams = get_all_teams()
this line where it doesn't get all the team objects and doesn't throw any error as well.
Okay, what system are you running this on? If you are on the cloud you should switch headless to true.
Does the bot open a chrome window?
I am running this on Ubuntu 18 on Cloud
Okay, have you made sure that chrome or chromium is installed on the machine?
Yeah its working fine no issue detected for chrome or chromium it works fine
Have you tried chromium and headless mode?
I did actually , nothing worked out
Can you also post the console log?
[WDM] - Cache is valid for [28/10/2020]
[WDM] - Looking for [chromedriver 86.0.4240.22 linux64] driver in cache
[WDM] - Driver found in cache [/home/ubuntu/.wdm/drivers/chromedriver/86.0.4240.22/linux64/chromedriver]
Resized window width
Resized window height
Found page, do not click anything on the webpage from now on.
[<selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="2590536e-a622-435d-b38b-8c65d42e27d6")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="7652abaa-3faf-4994-9e05-fc62d0a940da")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="ff257d21-36a5-45fb-9f72-675d55be9cf5")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="9d00feb1-88f3-42c3-bbbf-6c85c7d43009")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="d97870dc-f22c-4721-9a6a-a38a2ccf3ee0")>]
['BECLASS', 'Business Ethics Class', 'DMCT', 'CGM', 'CD']
Well that looks good.
Did you modify the code or are you using an old version? Because the print of the list should not be there.
I used print statements to debug the code
Then a slight change with the process creation of teams will be enough to run this on Linux too
I run it on Debian with chromium installed. Everything is fine. Here is my config:
{
"email": "CONFIDENTIAL",
"password": "CONFIDENTIAL"
"run_at_time": "",
"meeting_mode": 1,
"organisation_num" : 1,
"random_delay": false,
"check_interval": 10,
"join_message": "",
"auto_leave_after_min": -1,
"leave_if_last": true,
"leave_threshold_number": "15",
"leave_threshold_percentage": "10",
"pause_search": false,
"headless" : false,
"mute_audio": false,
"chrome_type": "chromium",
"blacklist": [],
"blacklist_meeting_re": ""
}