matrix-bot/tests/test.py

26 lines
493 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(",")
)
await client.run()
if __name__ == "__main__":
asyncio.run(main())