20 lines
436 B
Python
20 lines
436 B
Python
|
"""
|
||
|
Not really tests, because I don't know how to testt without a whole matrix server.
|
||
|
"""
|
||
|
|
||
|
import os
|
||
|
from dotenv import load_dotenv
|
||
|
from matrix_bot.client import Client
|
||
|
from getpass import getpass
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
load_dotenv()
|
||
|
client = Client(
|
||
|
os.environ["MUSER"],
|
||
|
os.environ["HOMESERVER"],
|
||
|
os.environ["PASSWD"],
|
||
|
os.environ["ROOMS"].split(",")
|
||
|
)
|
||
|
print(client.allowed_rooms)
|
||
|
|