updated locales and readmes i guess goober instances would download them on next update unless someone manually runs git pull or gets it for the first time

This commit is contained in:
WhatDidYouExpect 2025-07-01 23:22:38 +02:00
parent a8c520002e
commit 642aa3480c
9 changed files with 273 additions and 124 deletions

8
assets/locales/README.md Normal file
View file

@ -0,0 +1,8 @@
# Locales Directory
This folder contains localization files for the project.
**Notice:**
The Maltese, Spanish, and French locales currently do not have maintainers. If you are interested in helping maintain or improve these translations, please consider contributing!
Thank you for supporting localization efforts!

View file

@ -1,4 +1,5 @@
{
"env_file_not_found": "The .env file was not found! Please create one with the required variables.",
"error_fetching_active_users": "Error fetching active users: {error}",
"error_sending_alive_ping": "Error sending alive ping: {error}",
"already_started": "I've already started! I'm not updating...",

View file

@ -1,40 +1,41 @@
{
"already_started": "Olen jo käynnistynyt! En päivitä...",
"env_file_not_found": ".env-tiedostoa ei löytnyt! Luo tiedosto jossa on tarvittavat muuttujat",
"already_started": "Olen jo käynnistynyt! Ei päivitetä...",
"please_restart": "Käynnistä uudelleen, hölmö!",
"local_ahead": "Paikallinen {remote}/{branch} on edellä ja/tai ajan tasalla. Ei päivitystä...",
"local_ahead": "Paikallinen {remote}/{branch} on edellä ja/tai ajan tasalla. Ohitetaan päivitys...",
"remote_ahead": "Etärepositorio {remote}/{branch} on edellä. Päivitetään...",
"cant_find_local_version": "En löydä muuttujaa local_version! Tai sitä on muokattu eikä se ole kokonaisluku!",
"cant_find_local_version": "Muuttujaa local_version ei löytynyt, tai sitä on muokattu eikä ole kokonaisluku!",
"running_prestart_checks": "Suoritetaan esikäynnistystarkistuksia...",
"continuing_in_seconds": "Jatketaan {seconds} sekunnin kuluttua... Paina mitä tahansa näppäintä ohittaaksesi.",
"missing_requests_psutil": "Kirjastot requests ja psutil puuttuvat! Asenna ne komennolla: `pip install requests psutil`",
"requirements_not_found": "Tiedostoa requirements.txt ei löytynyt polusta {path} onko sitä muokattu?",
"warning_failed_parse_imports": "Varoitus: Tuontien jäsentäminen epäonnistui tiedostossa {filename}: {error}",
"cogs_dir_not_found": "Cogs-hakemistoa ei löytynyt polusta {path}, ohitetaan tarkistus.",
"warning_failed_parse_imports": "Varoitus: tuontien jäsentäminen epäonnistui tiedostossa {filename}: {error}",
"cogs_dir_not_found": "Cogs-kansiota ei löytynyt polusta {path}, ohitetaan tarkistus.",
"std_lib_local_skipped": "STD LIB / PAIKALLINEN {package} (tarkistus ohitettu)",
"ok_installed": "OK",
"missing_package": "PUUTTUU",
"missing_package2": "ei ole asennettu",
"missing_packages_detected": "Puuttuvia kirjastoja havaittu:",
"telling_goober_central": "Ilmoitetaan goober-keskukselle osoitteessa {url}",
"telling_goober_central": "Ilmoitetaan goober-centralille osoitteessa {url}",
"failed_to_contact": "Yhteyden muodostus epäonnistui osoitteeseen {url}: {error}",
"all_requirements_satisfied": "Kaikki vaatimukset täyttyvät.",
"ping_to": "Ping osoitteeseen {host}: {latency} ms",
"high_latency": "Korkea viive havaittu! Vasteajat saattavat hidastua.",
"high_latency": "Korkea viive havaittu! Vastaukset saattavat hidastua.",
"could_not_parse_latency": "Viivettä ei voitu tulkita.",
"ping_failed": "Ping osoitteeseen {host} epäonnistui.",
"error_running_ping": "Virhe ping-komennon suorittamisessa: {error}",
"memory_usage": "Muistin käyttö: {used} GB / {total} GB ({percent}%)",
"memory_above_90": "Muistin käyttö ylittää 90 % ({percent}%). Harkitse muistintilan vapauttamista.",
"total_memory": "Kokonaismuisti: {total} GB",
"used_memory": "Käytetty muisti: {used} GB",
"low_free_memory": "Vähän vapaata muistia! Vain {free} GB jäljellä.",
"memory_usage": "Muistin käyttö: {used} Gt / {total} Gt ({percent}%)",
"memory_above_90": "Muistin käyttö ylittää 90 % ({percent}%). Harkitse muistin vapauttamista.",
"total_memory": "Kokonaismuisti: {total} Gt",
"used_memory": "Käytetty muisti: {used} Gt",
"low_free_memory": "Vapaa muisti vähissä! Vain {free} Gt jäljellä.",
"measuring_cpu": "Mitataan suorittimen käyttöä ytimittäin...",
"core_usage": "Ydin {idx}: [{bar}] {usage}%",
"total_cpu_usage": "Kokonaisprosessorin käyttö: {usage}%",
"high_avg_cpu": "Korkea keskimääräinen prosessorin käyttö: {usage}%",
"really_high_cpu": "Erittäin korkea prosessorikuorma! Järjestelmä saattaa hidastua tai jumittua.",
"memory_file": "Muistitiedosto: {size} MB",
"memory_file_large": "Muistitiedosto on 1 GB tai suurempi harkitse sen tyhjentämistä tilan vapauttamiseksi.",
"memory_file": "Muistitiedosto: {size} Mt",
"memory_file_large": "Muistitiedosto on enemmän kuin 1 Gt harkitse sen tyhjentämistä tilan vapauttamiseksi.",
"memory_file_corrupted": "Muistitiedosto on vioittunut! JSON purkuvirhe: {error}",
"consider_backup_memory": "Harkitse muistitiedoston varmuuskopioimista ja uudelleenluontia.",
"memory_file_encoding": "Muistitiedostossa on koodausongelmia: {error}",

View file

@ -1,4 +1,5 @@
{
"env_file_not_found": "Il file .env non è stato trovato! Crea un file con le variabili richieste.",
"error fetching_active_users": "Errore nel recupero degli utenti attivi:",
"error_sending_alive_ping": "Errore nell'invio di aliveping:",
"already_started": "Sono già avviato! Non aggiorno...",
@ -14,7 +15,7 @@
"cogs_dir_not_found": "Cartella cogs non trovata in {path}, scansione saltata.",
"std_lib_local_skipped": "LIB STD / LOCALE {package} (controllo saltato)",
"ok_installed": "OK",
"missing_package": "MANCATE",
"missing_package": "REQUISITO MANCANTE",
"missing_package2": "non è installato",
"missing_packages_detected": "Pacchetti mancanti rilevati:",
"telling_goober_central": "Segnalazione a goober central su {url}",

125
assets/locales/mt.json Normal file
View file

@ -0,0 +1,125 @@
{
"env_file_not_found": "Ma nstab lfile .env! Oħloq wieħed bilvarjabbli meħtieġa.",
"error_fetching_active_users": "Żball waqt ilġbir talutenti attivi: {error}",
"error_sending_alive_ping": "Żball biex jintbagħat lalive ping: {error}",
"already_started": "Illum diġà bdejt! Ma sejħinx laġġornament…",
"please_restart": "Irristartja jekk jogħġbok, goober!",
"local_ahead": "Llokali {remote}/{branch} qiegħed qabel jew parallelament. Ma qed naġġornax…",
"remote_ahead": "Ilremote {remote}/{branch} hu 'l quddiem. Qed naġġorna…",
"cant_find_local_version": "Ma nistax insib ilvarjabbli local_version! Jew ġie ħassar u mhux intier!",
"running_prestart_checks": "Qed inħadmu ċċekkjijiet talprestart…",
"continuing_in_seconds": "Se nkunu qed inkomplu fi żmien {seconds} sekondi… Agħfas kwalunkwe buttuna biex tiċċekkja.",
"missing_requests_psutil": "Mhemmx requests u psutil! Poġġihom bpip: `pip install requests psutil`",
"requirements_not_found": "requirements.txt mhux instab f{path}, ġie modifikat?",
"warning_failed_parse_imports": "Twissija: Parse talimports f{filename} fallita: {error}",
"cogs_dir_not_found": "Direttorju “cogs” mhux instab f{path}, qed niskippjaw liskan.",
"std_lib_local_skipped": "STD LIB / LOKALI {package} (ċekk skippjat)",
"ok_installed": "OK",
"missing_package": "NINNEŻER",
"missing_package2": "mhux installat",
"missing_packages_detected": "Parzijiet nieqsa ġew skoperti:",
"telling_goober_central": "Qed ninfurmaw lillgoober central f{url}",
"failed_to_contact": "Falliment filkuntatt ma {url}: {error}",
"all_requirements_satisfied": "Ilħtiġijiet kollha laqgħu.",
"ping_to": "Ping lejn {host}: {latency} ms",
"high_latency": "Latentizza għolja skoperta! Possibbli dewmien firrispons.",
"could_not_parse_latency": "Ma nistax ninterpreta llatentizza.",
"ping_failed": "Ping lejn {host} falla.",
"error_running_ping": "Żball fleżekuzzjoni talping: {error}",
"memory_usage": "Użu ta' memorja: {used}GB / {total}GB ({percent}%)",
"memory_above_90": "Użu ta memorja fuq 90% ({percent}%). Ħsieb li tnaddaf xi ħaġa.",
"total_memory": "Memorja totali: {total}GB",
"used_memory": "Memorja użata: {used}GB",
"low_free_memory": "Memorja ħielsa baxxa! Biss {free}GB disponibbli.",
"measuring_cpu": "Qed nkejlu lCPU għal kull core…",
"core_usage": "Core {idx}: [{bar}] {usage}%",
"total_cpu_usage": "Użu totali talCPU: {usage}%",
"high_avg_cpu": "Użu medju għoli talCPU: {usage}%",
"really_high_cpu": "Użu eċċessiv talCPU! Issistema tista tieħu throttle jew tieqaf.",
"memory_file": "Fajl talmemorja: {size}MB",
"memory_file_large": "Ilfajl talmemorja hu 1GB jew aktar, ħsieb biex tiċċara għandu tagħmel sens.",
"memory_file_corrupted": "Ilfajl talmemorja hu korrott! Żball JSON decode: {error}",
"consider_backup_memory": "Inħeġġuk biex tagħmel backup u terġa toħloq ilfajl talmemorja.",
"memory_file_encoding": "Ilfajl talmemorja għandu issues ta kodifika: {error}",
"error_reading_memory": "Żball filqari talfajl talmemorja: {error}",
"memory_file_not_found": "Fajl talmemorja mhux instab.",
"modification_warning": "IlGoober ġie mmodifikat! Kull tibdil jintilef flaġġornament!",
"reported_version": "Verżjoni rrappurtata:",
"current_hash": "Hash attwali:",
"not_found": "mhux instab!",
"version_error": "Ma nistax niġbor informazzjoni dwar ilverżjoni. Kodiċi ta stat",
"loaded_cog": "Cog imlaħħaq:",
"loaded_cog2": "Modulu imlaħħaq:",
"cog_fail": "Falliment fittagħbija talcog:",
"cog_fail2": "Falliment fittagħbija talmodulu:",
"no_model": "Ma nstab l-ebda Markov model maħżun. Bdejt minn null.",
"folder_created": "Folder {folder_name} ġie maħluq.",
"folder_exists": "Folder {folder_name} diġà teżisti. qed niskippja…",
"logged_in": "Iddepożitu bħala",
"synced_commands": "Sync sseħħ",
"synced_commands2": "kmandi!",
"fail_commands_sync": "Falliment tassync talkmandi:",
"started": "{name} beda!",
"name_check": "Żball filċekk talisem:",
"name_taken": "Lisem diġà jieħu. Sib ieħor, jekk jogħġbok.",
"name_check2": "Żball waqt iċċekk talavailabbiltà ta lisem:",
"add_token": "Token: {token}\nŻid dan fil.env bħala",
"token_exists": "Token diġà jeżisti fil.env. Qed inkomplu biltoken attwali.",
"registration_error": "Żball firreġistrazzjoni:",
"version_backup": "Backup maħluq:",
"backup_error": "Żball: {LOCAL_VERSION_FILE} mhux instab għażbackup.",
"model_loaded": "Markov model imlaħħaq minn",
"fetch_update_fail": "Ma setgħux jiġbdu informazzjoni dwar laġġornament.",
"invalid_server": "Żball: Informazzjoni dwar ilverżjoni misjuba misserver mhix valida.",
"goober_server_alert": "Allarm minn goober central!\n",
"new_version": "Verżjoni ġdida disponibbli: {latest_version} (Attwali: {local_version})",
"changelog": "Eżamina {VERSION_URL}/goob/changes.txt biex tara lmodifiki\n\n",
"invalid_version": "Ilverżjoni: {local_version} mhix valida!",
"invalid_version2": "Jekk intenzjonata, ignora; inkella agħfas Y biex tittrasferixxi verżjoni valida millserver minkejja lverżjoni ta goober attwali",
"invalid_version3": "Ilverżjoni attwali tkun backuppjata għal current_version.bak..",
"input": "(Y jew kwalunkwe buttuna oħra biex tinjoraha…)",
"modification_ignored": "Int immodifikajt",
"modification_ignored2": "IGNOREWARNING hija false..",
"latest_version": "Int qed tuża lverżjoni liktar ġdida:",
"latest_version2": "Ara {VERSION_URL}/goob/changes.txt biex tara llog talmodifiki",
"pinging_disabled": "Pinging imblukkat! Ma qed ninfurmakx li għadek online…",
"goober_ping_success": "Logged filgoober central bħala {NAME}",
"goober_ping_fail": "Falliment flinvjaġġ taldata. Ilserver irrisponda bkodiċi stat:",
"goober_ping_fail2": "Żball seħħ waqt li bagħta data:",
"sentence_positivity": "Posittività ta sentenza hi:",
"command_edit_fail": "Falliment fittbiddel talmessaġġ:",
"command_desc_retrain": "Retrain ilMarkov model bmanu.",
"command_markov_retrain": "Qed inretrain ilMarkov model… Awżilja, jekk jogħġbok.",
"command_markov_memory_not_found": "Żball: fajl talmemorja maħżun mhux instab!",
"command_markov_memory_is_corrupt": "Żball: fajl talmemorja hu korrott!",
"command_markov_retraining": "Qed nipproċessa {processed_data}/{data_size} punti taddata…",
"command_markov_retrain_successful": "Markov model retrained bsuċċess blużu ta {data_size} punti taddata!",
"command_desc_talk": "jitkellem bħal affarijiet",
"command_talk_insufficent_text": "Għandi bżonn nitgħallem iktar millmessaġġi qabel nista nitkellem.",
"command_talk_generation_fail": "Mgħandi xejn xngħid bħalissa!",
"command_desc_help": "għin",
"command_help_embed_title": "Għajnuna talBot",
"command_help_embed_desc": "Lista ta kmandi maqsuma bkategoriji.",
"command_help_categories_general": "Ġenerali",
"command_help_categories_admin": "Amministrazzjoni",
"command_help_categories_custom": "Kmandi Personalizzati",
"command_ran": "Info: {message.author.name} użani {message.content}",
"command_ran_s": "Info: {interaction.user} użani ",
"command_desc_ping": "ping",
"command_ping_embed_desc": "Latentizza talBot:",
"command_ping_footer": "Mtitlub minn",
"command_about_desc": "dwar",
"command_about_embed_title": "Dwar jien",
"command_about_embed_field1": "Isem",
"command_about_embed_field2name": "Verżjoni",
"command_about_embed_field2value": "Lokali: {local_version} \nĠdida: {latest_version}",
"command_desc_stats": "stats",
"command_stats_embed_title": "Stati talBot",
"command_stats_embed_desc": "Informazzjoni dwar ilmemorja talbot.",
"command_stats_embed_field1name": "Statistika talFajl",
"command_stats_embed_field1value": "Daqs: {file_size} bytes\nLinji: {line_count}",
"command_stats_embed_field2name": "Verżjoni",
"command_stats_embed_field2value": "Lokali: {local_version} \nĠdida: {latest_version}",
"command_stats_embed_field3name": "Informazzjoni Varjabbli",
"command_stats_embed_field3value": "Isem: {NAME} \nPrefiss: {PREFIX} \nID ta Sid: {ownerid} \nCooldown: {cooldown_time} \nPing line: {PING_LINE} \nImoħħar Memenja: {showmemenabled} \nUser Training Attiva: {USERTRAIN_ENABLED}\nKan ta: {song} \nSplashtext: ```{splashtext}```"
}

8
modules/README.MD Normal file
View file

@ -0,0 +1,8 @@
# Modules Directory
This folder contains core module files for the project.
**Important:**
Do **not** modify the files in this directory if you plan to update the project in the future. Any changes made here may be overwritten during updates, or may cause Git to detect modifications and refuse to update properly.
If you need to make changes, consider contributing upstream or using extension mechanisms provided by the project.

0
modules/logger.py Normal file
View file

View file

@ -249,6 +249,11 @@ def start_checks():
check_memory()
check_memoryjson()
check_cpu()
if os.path.exists(".env"):
pass
else:
print(f"{YELLOW}{get_translation(LOCALE, 'env_file_not_found')}{RESET}")
sys.exit(1)
print(get_translation(LOCALE, "continuing_in_seconds").format(seconds=5))
presskey2skip(timeout=5)
os.system('cls' if os.name == 'nt' else 'clear')

View file

@ -15,7 +15,7 @@ def check_resources():
for resource, path in resources.items():
try:
nltk.data.find(path)
print(f"{resource} is already installed.")
logger.info(f"{resource} is already installed.")
except Exception:
nltk.download(str(resource))
@ -30,14 +30,14 @@ analyzer = SentimentIntensityAnalyzer()
def is_positive(sentence):
"""
Determines if the sentiment of the sentence is positive.
Prints debug information and returns True if sentiment score > 0.1.
logger.infos debug information and returns True if sentiment score > 0.1.
"""
scores = analyzer.polarity_scores(sentence)
sentiment_score = scores['compound']
# Print debug message with sentiment score
# logger.info debug message with sentiment score
debug_message = f"{DEBUG}{get_translation(LOCALE, 'sentence_positivity')} {sentiment_score}{RESET}"
print(debug_message)
logger.info(debug_message)
return sentiment_score > 0.1