fix error introduced by fix
This commit is contained in:
parent
e918aebb6b
commit
28c4e38c9d
3
main.py
3
main.py
|
|
@ -93,13 +93,14 @@ async def delivery(ctx,
|
||||||
async def changeSheetUrl(ctx,
|
async def changeSheetUrl(ctx,
|
||||||
url:discord.Option(discord.SlashCommandOptionType.string, description="the new URL")
|
url:discord.Option(discord.SlashCommandOptionType.string, description="the new URL")
|
||||||
):
|
):
|
||||||
|
global gsheetToken
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
try:
|
try:
|
||||||
with open("sheet.token",'w') as f:
|
with open("sheet.token",'w') as f:
|
||||||
f.write(url)
|
f.write(url)
|
||||||
|
|
||||||
await ctx.followup.send(f"URL has been set")
|
await ctx.followup.send(f"URL has been set")
|
||||||
global gsheetToken = readToken("sheet.token")
|
gsheetToken = readToken("sheet.token")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await ctx.followup.send(f"something shat the bed")
|
await ctx.followup.send(f"something shat the bed")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user