fix kroger input
This commit is contained in:
parent
2ae79927c2
commit
cb9e886f08
@ -224,7 +224,9 @@ async def on_message(message):
|
|||||||
if message.content.lower().startswith("garfshop "):
|
if message.content.lower().startswith("garfshop "):
|
||||||
try:
|
try:
|
||||||
kroken = kroger_token()
|
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_data = find_store(zipcode, kroken)
|
||||||
loc_id = loc_data['data'][0]['locationId']
|
loc_id = loc_data['data'][0]['locationId']
|
||||||
store_name = loc_data['data'][0]['name']
|
store_name = loc_data['data'][0]['name']
|
||||||
|
Loading…
Reference in New Issue
Block a user