2 Commits
Author SHA1 Message Date
sugoidogo d1892a241f fix typo 2025-07-20 23:15:26 -07:00
sugoidogo eb045fa94a fix update function args 2025-07-20 23:14:19 -07:00
+3 -3
View File
@@ -7,15 +7,15 @@ from threading import Thread
from os import makedirs,path
import json,sys,webbrowser,importlib,tomllib
def update():
def update(*args):
print('checking for updates...')
with open(script_path()+'astrolobott.py','r') as file:
with open(script_path()+'astrolobot.py','r') as file:
current_script=file.read()
urlretrieve(
'https://github.com/sugoidogo/astrolobot/releases/latest/download/astrolobot.py',
script_path()+'astrolobot.py'
)
with open(script_path()+'astrolobott.py','r') as file:
with open(script_path()+'astrolobot.py','r') as file:
updated_script=file.read()
if current_script==updated_script:
print('up to date')