dev-prodId #1
|
|
@ -200,24 +200,23 @@ class IdaCogs(commands.Cog):
|
||||||
|
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
try:
|
try:
|
||||||
with open("../sheet.token", 'w') as f:
|
with open("sheet.token", 'w') as f:
|
||||||
print(url)
|
print(url)
|
||||||
f.write("ssssss")
|
f.write(url)
|
||||||
print("fqzqzdzqqzqzdqdzqzdqdz")
|
|
||||||
|
|
||||||
await ctx.followup.send(f"URL has been set to {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()
|
await helpers.delLastCommandFile()
|
||||||
print("deleted command.last file content")
|
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.
|
# 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("|")
|
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)
|
f.write(name)
|
||||||
self.stationName = name
|
self.stationName = name
|
||||||
|
|
||||||
with open("../station.url", 'w') as f:
|
with open("station.url", 'w') as f:
|
||||||
f.write(url)
|
f.write(url)
|
||||||
self.stationUrl = url
|
self.stationUrl = url
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user