Skip to content

Commit

Permalink
Adding version parameter on .env and conf.js files
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Caetano committed May 17, 2021
1 parent 0e27c5e commit 80f34e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# <string> BigBlueButton hostname.
BIGBLUEBOT_HOST=

# <string> Running BigBlueButton server version.
BIGBLUEBOT_VERSION=

# <string> Room name or meetingID the bot should join. Defaults to "Demo Meeting"
# BIGBLUEBOT_ROOM=

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ At the `.env` file you just copied, set:
- your BigBlueButton server URL
```
BIGBLUEBOT_HOST=https://your.bigbluebutton.server
```
- your BigBlueButton server running version (currently 2.2 or 2.3)
```
BIGBLUEBOT_VERSION=2.2
```
- [optional] room name or meetingID
```
Expand Down
2 changes: 2 additions & 0 deletions lib/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let custom = config;

const {
BIGBLUEBOT_HOST,
BIGBLUEBOT_VERSION,
BIGBLUEBOT_SECRET,
BIGBLUEBOT_ROOM,
BIGBLUEBOT_ATTENDEE_PW,
Expand All @@ -24,6 +25,7 @@ const {
} = process.env;

if (BIGBLUEBOT_HOST) custom.url.host = BIGBLUEBOT_HOST;
if (BIGBLUEBOT_VERSION) custom.url.version = BIGBLUEBOT_VERSION;
if (BIGBLUEBOT_ROOM) custom.url.meeting.name = BIGBLUEBOT_ROOM;

if (BIGBLUEBOT_SECRET) custom.api.secret = BIGBLUEBOT_SECRET;
Expand Down

0 comments on commit 80f34e2

Please sign in to comment.