]> apps.delaporte.us Git - matrix-fridge-bot.git/blobdiff - matrix_fridge_bot/bot.py
Fixup
[matrix-fridge-bot.git] / matrix_fridge_bot / bot.py
index 48be800040699e791676e98ada00ab5da7d15697..ff6a5e635123b842c317c0a48221a39478c17cbd 100644 (file)
@@ -1,8 +1,8 @@
 '''
 '''
-Prefix: !fridge
+Prefix: .fridge
 
 Synax:
 
 Synax:
-!fridge COMMAND ARGS
+.fridge COMMAND ARGS
 
 Commands:
 add - add an item
 
 Commands:
 add - add an item
@@ -52,9 +52,16 @@ class FridgeBot():
         if match.prefix():
             try:
                 result_lines = await self._handle_match(match)
         if match.prefix():
             try:
                 result_lines = await self._handle_match(match)
+
+                message_lines = []
                 for line in result_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(
             except Exception as ex:
                 line = f'Ye flask must be load bearing, or something... {str(ex)}'
                 await self.bot.api.send_text_message(