Compare commits
No commits in common. "main" and "dev-prodId" have entirely different histories.
main
...
dev-prodId
|
|
@ -111,8 +111,7 @@ class IdaCogs(commands.Cog):
|
|||
print(f"[{datetime.isoformat(datetime.now())}]{author} delivery of {quantity} of {commodity} to a {target}")
|
||||
await helpers.writeDeliveryToCommandFile(author, data)
|
||||
else:
|
||||
await ctx.followup.send(f"Google returned an error. (HTTP {response}). But your delivery may have gone through. Maybe. Maybe not? who knows? Not fucking Google apparently. ")
|
||||
|
||||
await ctx.followup.send(f"Failed to log delivery (HTTP {response}). Please contact the yellow people if that keeps happening")
|
||||
except Exception as e:
|
||||
await ctx.followup.send(f"Something broke. Why do you keep breaking the bot, uh? :(")
|
||||
channel = self.bot.get_channel(self.debugChannel)
|
||||
|
|
@ -297,7 +296,7 @@ class IdaCogs(commands.Cog):
|
|||
|
||||
response = await helpers.getFromSheet(self.session, self.gsheetToken, "commodity")
|
||||
|
||||
#print(response)
|
||||
print(response)
|
||||
commodity, values, initial = response.split("|")
|
||||
|
||||
commodity = commodity.split(",")
|
||||
|
|
|
|||
|
|
@ -48,8 +48,7 @@ async def getFromSheet(session, gsheetToken, data):
|
|||
async def postToSheet(session, data, gsheetToken):
|
||||
async with session.post(gsheetToken, json=data) as response:
|
||||
text = await response.text()
|
||||
print(text)
|
||||
print(response)
|
||||
#print(text)
|
||||
#print("Status:", response.status)
|
||||
return response.status
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user