From 16af111bf6cd619abe189b46fcdb20bc5ad0606f Mon Sep 17 00:00:00 2001 From: Samuel MARTIN MORO Date: Fri, 21 May 2021 13:23:53 +0200 Subject: [PATCH] feat(chat-message): allow for custom message definition --- README.md | 1 + stream.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e87d5ed..9c9a5c4 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ You need to set some environment variables to run the container. * BBB_USER_NAME - the username to join the meeting. (Default: Live) * BBB_SHOW_CHAT - shows the chat on the left side of the window (Default: false) * BBB_RESOLUTION - the streamed/downloaded resolution (Default: 1920x1080) +* BBB_CHAT_MESSAGE - prefix for the message that would be posted to BBB chat, while joining a conference (Default: "This meeting is streamed to") * TZ - Timezone (Default: Europe/Vienna) #### Chat settings diff --git a/stream.py b/stream.py index 0ea136e..6992e32 100644 --- a/stream.py +++ b/stream.py @@ -149,7 +149,7 @@ def bbb_browser(): tmp_chatUrl = args.target.partition('//')[2].partition('/')[0] if args.chatUrl: tmp_chatUrl = args.chatUrl - tmp_chatMsg = "This meeting is streamed to" + tmp_chatMsg = os.environ.get('BBB_CHAT_MESSAGE', "This meeting is streamed to") if args.chatMsg: tmp_chatMsg = ' '.join(args.chatMsg).strip('"') element.send_keys("{0}: {1}".format(tmp_chatMsg, tmp_chatUrl))