]> us-delaporte.pagekite.me Git - matrix-fridge-bot.git/blobdiff - matrix_fridge_bot/bot.py
Fixup
[matrix-fridge-bot.git] / matrix_fridge_bot / bot.py
index 14767f3721344f30c2f2b9a383af382107235422..ff6a5e635123b842c317c0a48221a39478c17cbd 100644 (file)
@@ -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(