From: Edward Delaporte Date: Sun, 7 Jun 2026 00:37:44 +0000 (-0500) Subject: Update to be less chatty X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-shop-bot.git/commitdiff_plain/19ac057d2c160ffd275301350a3fa446e5e07a13?ds=sidebyside Update to be less chatty --- 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(