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