dev-prodId #1

Merged
Taledo merged 22 commits from dev-prodId into main 2026-07-29 08:12:57 +00:00
Showing only changes of commit 57d5c38a98 - Show all commits

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