import asyncio
|
|
|
|
from boeh import BooeehBot, env
|
|
|
|
|
|
async def main_async():
|
|
url = "https://matrix.org"
|
|
username = "@retoor2:matrix.org"
|
|
password = env.secret4
|
|
bot = BooeehBot(url, username, password)
|
|
|
|
try:
|
|
await bot.start()
|
|
except KeyboardInterrupt:
|
|
await bot.stop()
|
|
|
|
|
|
def main():
|
|
asyncio.run(main_async())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|