X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-shop-bot.git/blobdiff_plain/b101ceec84269b137eaee1fe4257131fe8820630..9cb6bc9d1cf3034aed5050c9720ade7d4f70bc91:/matrix_shop_bot/bot.py?ds=inline 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:])