Merge pull request #10 from gooberinc/dev

Dev
This commit is contained in:
WhatDidYouExpect 2025-07-07 23:42:15 +02:00 committed by GitHub
commit 05101d1062
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 1929 additions and 4 deletions

1923
assets/cogs/fireboard.py Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,5 @@
{ {
"psutil_not_installed": "Memory check skipped.",
"not_cloned": "Goober is not cloned! Please clone it from GitHub.", "not_cloned": "Goober is not cloned! Please clone it from GitHub.",
"checks_disabled": "Checks are disabled!", "checks_disabled": "Checks are disabled!",
"unhandled_exception": "An unhandled exception occurred. Please report this issue on GitHub.", "unhandled_exception": "An unhandled exception occurred. Please report this issue on GitHub.",

View file

@ -1,4 +1,5 @@
{ {
"psutil_not_installed": "Controllo memoria saltato.",
"not_cloned": "Goober non è stato clonato! Clonalo da GitHub.", "not_cloned": "Goober non è stato clonato! Clonalo da GitHub.",
"checks_disabled": "I controlli sono disabilitati!", "checks_disabled": "I controlli sono disabilitati!",
"unhandled_exception": "Si è verificata un'eccezione non gestita. Segnala questo problema su GitHub, per favore.", "unhandled_exception": "Si è verificata un'eccezione non gestita. Segnala questo problema su GitHub, per favore.",

View file

@ -37,7 +37,7 @@ arch = platform.machine()
slash_commands_enabled = True # 100% broken, its a newer enough version so its probably enabled by default.... fix this at somepoint or hard code it in goober central code slash_commands_enabled = True # 100% broken, its a newer enough version so its probably enabled by default.... fix this at somepoint or hard code it in goober central code
launched = False launched = False
latest_version = "0.0.0" latest_version = "0.0.0"
local_version = "2.1.1" local_version = "2.1.2"
os.environ['gooberlocal_version'] = local_version os.environ['gooberlocal_version'] = local_version
REACT = os.getenv("REACT") REACT = os.getenv("REACT")
beta = False # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks beta = False # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks

View file

@ -117,7 +117,7 @@ def check_missing_translations():
ENGLISH_MISSING = True ENGLISH_MISSING = True
return return
if LOCALE == "en": if LOCALE == "en":
print("Locale is English, skipping missing key check.") print("[VOLTA] Locale is English, skipping missing key check.")
return return
@ -134,12 +134,12 @@ def check_missing_translations():
print(f"[VOLTA] {YELLOW}Warning: All keys are missing in locale '{LOCALE}'! Defaulting back to {FALLBACK_LOCALE}{RESET}") print(f"[VOLTA] {YELLOW}Warning: All keys are missing in locale '{LOCALE}'! Defaulting back to {FALLBACK_LOCALE}{RESET}")
set_language(FALLBACK_LOCALE) set_language(FALLBACK_LOCALE)
elif percent_missing > 0: elif percent_missing > 0:
print(f"{YELLOW}Warning: {missing_count}/{total_keys} keys missing in locale '{LOCALE}' ({percent_missing:.1f}%)!{RESET}") print(f"[VOLTA] {YELLOW}Warning: {missing_count}/{total_keys} keys missing in locale '{LOCALE}' ({percent_missing:.1f}%)!{RESET}")
for key in sorted(missing_keys): for key in sorted(missing_keys):
print(f" - {key}") print(f" - {key}")
time.sleep(2) time.sleep(2)
else: else:
print("All translation keys present for locale:", LOCALE) print(f"[VOLTA] All translation keys present for locale: {LOCALE}")
def get_translation(lang: str, key: str): def get_translation(lang: str, key: str):