fix error introduced by fix

This commit is contained in:
TanguyPcFixe 2025-07-17 09:14:58 +02:00
parent e918aebb6b
commit 28c4e38c9d

View File

@ -93,13 +93,14 @@ async def delivery(ctx,
async def changeSheetUrl(ctx,
url:discord.Option(discord.SlashCommandOptionType.string, description="the new URL")
):
global gsheetToken
await ctx.defer()
try:
with open("sheet.token",'w') as f:
f.write(url)
await ctx.followup.send(f"URL has been set")
global gsheetToken = readToken("sheet.token")
gsheetToken = readToken("sheet.token")
except Exception as e:
await ctx.followup.send(f"something shat the bed")