From f27d0af90f8649189a02ec693617810a75b16546 Mon Sep 17 00:00:00 2001 From: Dylan Hackworth Date: Sat, 23 Jan 2021 13:23:48 -0600 Subject: [PATCH 1/2] Revisioned Join on Invite env var --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index ee8f7b4..7b53433 100755 --- a/bot.py +++ b/bot.py @@ -389,7 +389,7 @@ class Bot: if matrix_server and self.matrix_user and bot_owners and access_token: self.client = AsyncClient(matrix_server, self.matrix_user, ssl = matrix_server.startswith("https://")) self.client.access_token = access_token - self.join_on_invite = join_on_invite is not None + self.join_on_invite = (join_on_invite or '').lower() == 'true' self.owners = bot_owners.split(',') self.owners_only = owners_only self.get_modules() From a8cd7de81eceffcdff3f6bb318efeb6428cf72e7 Mon Sep 17 00:00:00 2001 From: Dylan Hackworth Date: Sat, 23 Jan 2021 14:07:34 -0600 Subject: [PATCH 2/2] Documented changes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8351fe8..06d4b86 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,7 @@ Example commands: ### Relay bridge -Bridges two or more Matrix rooms together via relaybot. +Bridges two or more Matrix rooms together via relaybot. Note: Room ID is not same as room alias! Rooms can exist without aliases so ID's are more flexible. Room id is usually in format !123LotOfRandomChars:server.org @@ -518,7 +518,7 @@ docker-compose up ## Env variables `MATRIX_USER`, `MATRIX_ACCESS_TOKEN` and `MATRIX_SERVER` should be self-explanatory. -Set `JOIN_ON_INVITE` to anything if you want the bot to join invites automatically (do not set it if you don't want it to join). +Set `JOIN_ON_INVITE` (default true) to false if you don't want the bot automatically joining rooms. You can get access token by logging in with Riot and looking from Settings / Help & About.