fixed bad files path

This commit is contained in:
TanguyPcFixe 2026-07-28 23:44:18 +02:00
parent 049ae8f9dd
commit 57d5c38a98

View File

@ -200,24 +200,23 @@ class IdaCogs(commands.Cog):
await ctx.defer()
try:
with open("../sheet.token", 'w') as f:
with open("sheet.token", 'w') as f:
print(url)
f.write("ssssss")
print("fqzqzdzqqzqzdqdzqzdqdz")
f.write(url)
await ctx.followup.send(f"URL has been set to {url}")
self.gsheetToken = helpers.readToken("../sheet.token")
self.gsheetToken = helpers.readToken("sheet.token")
await helpers.delLastCommandFile()
print("deleted command.last file content")
# gets the name and URL from the sheet, then store it in a file so we don't ask the sheet again.
name, url = (await helpers.getFromSheet(self.gsheetToken, "sheet")).split("|")
with open("../station.name", 'w') as f:
with open("station.name", 'w') as f:
f.write(name)
self.stationName = name
with open("../station.url", 'w') as f:
with open("station.url", 'w') as f:
f.write(url)
self.stationUrl = url