matrix-bot/tests/test.py

27 lines
525 B
Python
Raw Normal View History

"""
Not really tests, because I don't know how to testt without a whole matrix server.
"""
import asyncio
import os
from dotenv import load_dotenv
from matrix_bot.client import Client
from getpass import getpass
async def main():
load_dotenv()
client = await Client(
os.environ["MUSER"],
os.environ["HOMESERVER"],
os.environ["PASSWD"],
os.environ["ROOMS"].split(",")
)
print(client.allowed_rooms)
await client.run()
if __name__ == "__main__":
asyncio.run(main())