X-Git-Url: https://apps.delaporte.us/gitweb/matrix-fridge-bot.git/blobdiff_plain/21b06febf48cbb2d62837dd879ae07b177af3d68..refs/heads/main:/matrix_fridge_bot/bot.py diff --git a/matrix_fridge_bot/bot.py b/matrix_fridge_bot/bot.py index 14767f3..ff6a5e6 100644 --- a/matrix_fridge_bot/bot.py +++ b/matrix_fridge_bot/bot.py @@ -52,9 +52,16 @@ class FridgeBot(): if match.prefix(): try: result_lines = await self._handle_match(match) + + message_lines = [] for line in result_lines: - await self.bot.api.send_text_message( - room.room_id, str(line)) + message_lines.append(str(line)) + + message = '\n'.join(message_lines) + + await self.bot.api.send_text_message( + room.room_id, message) + except Exception as ex: line = f'Ye flask must be load bearing, or something... {str(ex)}' await self.bot.api.send_text_message(