diff --git a/src/main.py b/src/main.py index 4b6d0d7..823fa75 100644 --- a/src/main.py +++ b/src/main.py @@ -261,7 +261,10 @@ class MlmMatrixBot: async def main(): bot = MlmMatrixBot() - await bot.init() + if not await bot.init(): + logging.critical("Bot initialization failed") + sys.exit(1) + while True: await bot.run() time.sleep(60)