From 19ac057d2c160ffd275301350a3fa446e5e07a13 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sat, 6 Jun 2026 19:37:44 -0500 Subject: [PATCH] Update to be less chatty --- matrix_shop_bot/bot.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/matrix_shop_bot/bot.py b/matrix_shop_bot/bot.py index 9a36c63..02c59bc 100644 --- a/matrix_shop_bot/bot.py +++ b/matrix_shop_bot/bot.py @@ -185,9 +185,16 @@ async def shop_bot(room, message, bot): try: if match.prefix(): result_lines = await do_shop(match) + + message_lines = [] for line in result_lines: - await bot.api.send_text_message( - room.room_id, str(line)) + message_lines.append(str(line)) + + message = '\n'.join(message_lines) + + await bot.api.send_text_message( + room.room_id, message) + except Exception as ex: for line in ['You have:', ' no tea', str(ex)]: await bot.api.send_text_message( -- 2.47.3