Implemented syncing

This commit is contained in:
2026-08-18 02:52:38 +03:00
parent 75388d8693
commit 8c1399d781
2 changed files with 33 additions and 5 deletions

View File

@@ -35,16 +35,21 @@ async def main() -> None:
util.log_error("Could't load config")
return
# setup the bot
matrix_bot_config = MatrixBotConfig(
matrix_homeserver_url=cfg.matrix_homeserver,
matrix_username_localpart=cfg.matrix_user,
storage_directory=Path(cfg.store_dir)
)
bot = MatrixBot(matrix_bot_config)
# start the app
bot.start()
# wait for Ctrl+C
await util.get_app_stop_event().wait()
# stop the app
await bot.stop()
if __name__ == "__main__":