From 57d5c38a988e4a3a60059325f25fb2e63ce12a48 Mon Sep 17 00:00:00 2001 From: TanguyPcFixe Date: Tue, 28 Jul 2026 23:44:18 +0200 Subject: [PATCH] fixed bad files path --- cogs/IdaCogs.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cogs/IdaCogs.py b/cogs/IdaCogs.py index 3857894..ed3c28e 100644 --- a/cogs/IdaCogs.py +++ b/cogs/IdaCogs.py @@ -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