dev-prodId #1

Merged
Taledo merged 22 commits from dev-prodId into main 2026-07-29 08:12:57 +00:00
Showing only changes of commit 9ff9dde701 - Show all commits

View File

@ -234,8 +234,15 @@ class IdaCogs(commands.Cog):
async def setCarrierState(self, ctx, carrier, state):
response = await helpers.getFromSheet(self.session, self.gsheetToken, "carrier")
await ctx.defer()
#transforms the response into a dict (carrier : state) we can use
carrierState = await helpers.parseCarrierState(response)
if carrier not in carrierState.keys():
await ctx.followup.send(f"The specified carrier {carrier} is not in the allowed list! Quitting!")
return 0
author = str(ctx.author)
carrierState[carrier] = state
@ -244,7 +251,7 @@ class IdaCogs(commands.Cog):
#print(rawState)
await ctx.defer()
i = 1
text = "Current Carrier State : \n"