me when i fix a shitty release

This commit is contained in:
expect 2025-05-30 23:36:16 +02:00
parent 29f80eb9b6
commit f33518c29c

13
bot.py
View file

@ -203,7 +203,7 @@ def generate_sha256_of_current_file():
latest_version = "0.0.0" latest_version = "0.0.0"
local_version = "0.14.8.3.4.1" local_version = "0.14.9"
os.environ['gooberlocal_version'] = local_version os.environ['gooberlocal_version'] = local_version
@ -234,11 +234,14 @@ def check_for_update():
if local_version < latest_version: if local_version < latest_version:
print(f"{YELLOW}{get_translation(LOCALE, 'new_version').format(latest_version=latest_version, local_version=local_version)}{RESET}") print(f"{YELLOW}{get_translation(LOCALE, 'new_version').format(latest_version=latest_version, local_version=local_version)}{RESET}")
print(f"{YELLOW}{get_translation(LOCALE, 'changelog').format(VERSION_URL=VERSION_URL)}{RESET}") print(f"{YELLOW}{get_translation(LOCALE, 'changelog').format(VERSION_URL=VERSION_URL)}{RESET}")
if local_version == latest_version:
elif local_version == latest_version:
print(f"{GREEN}{get_translation(LOCALE, 'latest_version')} {local_version}{RESET}") print(f"{GREEN}{get_translation(LOCALE, 'latest_version')} {local_version}{RESET}")
print(f"{get_translation(LOCALE, 'latest_version2').format(VERSION_URL=VERSION_URL)}\n\n") print(f"{get_translation(LOCALE, 'latest_version2').format(VERSION_URL=VERSION_URL)}\n\n")
# finally fucking fixed this i tell you
if gooberhash != currenthash: if gooberhash != currenthash:
print(f"{YELLOW}{get_translation(LOCALE, 'modification_warning')}") print(f"{YELLOW}{get_translation(LOCALE, 'modification_warning')}{RESET}")
print(f"{YELLOW}{get_translation(LOCALE, 'reported_version')} {local_version}{RESET}") print(f"{YELLOW}{get_translation(LOCALE, 'reported_version')} {local_version}{RESET}")
print(f"{DEBUG}{get_translation(LOCALE, 'current_hash')} {currenthash}{RESET}") print(f"{DEBUG}{get_translation(LOCALE, 'current_hash')} {currenthash}{RESET}")
@ -348,7 +351,7 @@ def ping_server():
os.environ['gooberauthenticated'] = 'No' os.environ['gooberauthenticated'] = 'No'
return return
goobres = requests.get(f"{VERSION_URL}/alert") goobres = requests.get(f"{VERSION_URL}/alert")
print(f"{get_translation(LOCALE, 'goober_server_alert')}={goobres.text}=") print(f"{get_translation(LOCALE, 'goober_server_alert')}{goobres.text}")
file_info = get_file_info(MEMORY_FILE) file_info = get_file_info(MEMORY_FILE)
payload = { payload = {
"name": NAME, "name": NAME,