fix user env

This commit is contained in:
Moritz 2024-08-14 09:46:25 +02:00
parent 1e9beec018
commit 6aec5226ba
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
HOMESERVER=https://matrix.example.com HOMESERVER=https://matrix.example.com
USER=@whisper_bot:matrix.example.com USER_ID=@whisper_bot:matrix.example.com
PASSWORD=super-secret-password PASSWORD=super-secret-password

View file

@ -29,7 +29,7 @@ def audio_callback_closure(client: AsyncClient):
async def main() -> None: async def main() -> None:
load_dotenv() load_dotenv()
homeserver = str(os.getenv("HOMESERVER")) homeserver = str(os.getenv("HOMESERVER"))
user = str(os.getenv("USER")) user = str(os.getenv("USER_ID"))
password = str(os.getenv("PASSWORD")) password = str(os.getenv("PASSWORD"))
print(f"login at {homeserver} with {user}") print(f"login at {homeserver} with {user}")
client = AsyncClient(homeserver, user) client = AsyncClient(homeserver, user)