From 49680deda5ff2d9e423ce988c36d6de71355e986 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sun, 29 Mar 2026 12:46:10 -0500 Subject: [PATCH] Print latest list after each add --- matrix_shop_bot/bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/matrix_shop_bot/bot.py b/matrix_shop_bot/bot.py index b1437ef..4c0a916 100644 --- a/matrix_shop_bot/bot.py +++ b/matrix_shop_bot/bot.py @@ -57,7 +57,10 @@ async def do_shop(match): if match.command('add'): new = ' '.join(match.args()[1:]) result = Data().add_item(new) - return [f'Item added with id {result}'] + results = [f'Item added with id {result}'] + for item in Data().get_last_shopping_list(): + results.append(str(item)) + return results if match.command('add-store'): new = ' '.join(match.args()[1:]) -- 2.47.3