working prototype

This commit is contained in:
Aron Petau 2025-09-17 16:35:11 +02:00
parent 4f2723b767
commit 1a4abe978f
21 changed files with 706 additions and 145 deletions

16
get_room_id.py Normal file
View file

@ -0,0 +1,16 @@
from nio import AsyncClient
import asyncio, os
from dotenv import load_dotenv
load_dotenv() # this must run **before** os.environ access
async def get_room_id():
client = AsyncClient("http://localhost:8008", "@einszwovier_bot:localhost")
await client.login(os.environ["MATRIX_PASS"])
await client.join("#2D-prints:localhost")
rooms = await client.joined_rooms()
print("Joined rooms:", rooms.rooms)
await client.close()
asyncio.run(get_room_id())