dev-prodId #1
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user