X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/blobdiff_plain/1b1c92e88a56c85a184a4c6400052ce4b580fd8e..18cd16d493680714ecf51c1ec3fd411788776a76:/matrix_shop_bot/bot.py 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:])