From cb9e886f089350d08379889f771036bb61d1453f Mon Sep 17 00:00:00 2001 From: aaron crate Date: Mon, 30 Sep 2024 05:58:03 +0000 Subject: [PATCH] fix kroger input --- garfbot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/garfbot.py b/garfbot.py index fdc6b22..9241f45 100644 --- a/garfbot.py +++ b/garfbot.py @@ -224,7 +224,9 @@ async def on_message(message): if message.content.lower().startswith("garfshop "): try: kroken = kroger_token() - _, product, zipcode = message.content.split() + kroger_query = message.content.split() + product = " ".join(kroger_query[1:-1]) + zipcode = kroger_query[-1] loc_data = find_store(zipcode, kroken) loc_id = loc_data['data'][0]['locationId'] store_name = loc_data['data'][0]['name']