Skip to content
Snippets Groups Projects
Commit 94e4540a authored by Samuel MARTIN MORO's avatar Samuel MARTIN MORO
Browse files

feat(chat-message): chat.py equivalent

parent 29cd9c6c
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,15 @@ def bbb_browser(): ...@@ -85,8 +85,15 @@ def bbb_browser():
element = EC.invisibility_of_element((By.CSS_SELECTOR, '.ReactModal__Overlay')) element = EC.invisibility_of_element((By.CSS_SELECTOR, '.ReactModal__Overlay'))
WebDriverWait(browser, selenium_timeout).until(element) WebDriverWait(browser, selenium_timeout).until(element)
browser.find_element_by_id('message-input').send_keys("Viewers of the live stream can now send messages to this meeting")
browser.find_elements_by_css_selector('[aria-label="Send message"]')[0].click() element = browser.find_element_by_id('message-input')
chat_send = browser.find_elements_by_css_selector('[aria-label="Send message"]')[0]
# ensure chat is enabled (might be locked by moderator)
if element.is_enabled() and chat_send.is_enabled():
tmp_chatMsg = os.environ.get('BBB_CHAT_MESSAGE', "Viewers of the live stream can now send messages to this meeting")
if not tmp_chatMsg in [ 'false', 'False', 'FALSE' ]:
element.send_keys(tmp_chatMsg)
chat_send.click()
redis_r = redis.Redis(host=args.redis,charset="utf-8", decode_responses=True) redis_r = redis.Redis(host=args.redis,charset="utf-8", decode_responses=True)
redis_s = redis_r.pubsub() redis_s = redis_r.pubsub()
......
...@@ -17,4 +17,4 @@ BBB_REDIS_CHANNEL=chat ...@@ -17,4 +17,4 @@ BBB_REDIS_CHANNEL=chat
# Username for the chat (default: 'Chat') # Username for the chat (default: 'Chat')
BBB_CHAT_NAME=Chat BBB_CHAT_NAME=Chat
# Message to post in BBB Chat when joining a conference # Message to post in BBB Chat when joining a conference
BBB_CHAT_MESSAGE=This meeting is streamed to BBB_CHAT_MESSAGE=Viewers of the live stream can now send messages to this meeting
...@@ -21,7 +21,7 @@ services: ...@@ -21,7 +21,7 @@ services:
# show chat in live stream # show chat in live stream
- BBB_SHOW_CHAT=false - BBB_SHOW_CHAT=false
# Message to post in BBB Chat when joining a conference # Message to post in BBB Chat when joining a conference
- BBB_CHAT_MESSAGE=This meeting is streamed to - BBB_CHAT_MESSAGE=Viewers of the live stream can now send messages to this meeting
# Set REDIS host (default: 'redis') # Set REDIS host (default: 'redis')
- BBB_REDIS_HOST=redis - BBB_REDIS_HOST=redis
# Set REDIS channel to subscribe (default: 'chat') # Set REDIS channel to subscribe (default: 'chat')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment