Skip to content

Commit

Permalink
custom message in chat on recording
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Jun 28, 2021
1 parent 934ff8e commit 3d33368
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,21 @@ def bbb_browser():
# 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', "This meeting is streamed to")
tmp_chatCustomMsg = os.environ.get('BBB_CHAT_CUSTOM_MESSAGE', "This meeting is streamed to")
if not tmp_chatMsg in [ 'false', 'False', 'FALSE' ]:
if args.target is not None:
tmp_chatUrl = args.target.partition('//')[2].partition('/')[0]
if args.chatUrl:
tmp_chatUrl = args.chatUrl
if args.chatMsg:
tmp_chatMsg = ' '.join(args.chatMsg).strip('"')
element.send_keys("{0}: {1}".format(tmp_chatMsg, tmp_chatUrl))
tmp_chatMsg = "{0}: {1}".format(tmp_chatMsg, tmp_chatUrl)
else if tmp_chatCustomMsg != '':
tmp_chatMsg = tmp_chatCustomMsg
else:
tmp_chatMsg = "Recording in progress!"
element.send_keys(tmp_chatMsg)

element.send_keys(tmp_chatMsg)
chat_send.click()

if args.chat:
Expand Down

0 comments on commit 3d33368

Please sign in to comment.