diff --git a/bot.py b/bot.py index fa25e29..4ca1784 100644 --- a/bot.py +++ b/bot.py @@ -354,7 +354,7 @@ def ping_server(): try: response = requests.post(VERSION_URL+"/ping", json=payload) if response.status_code == 200: - print(f"{GREEN}{get_translation(LOCALE, 'goober_ping_success')}{RESET}") + print(f"{GREEN}{get_translation(LOCALE, 'goober_ping_success').format(NAME=NAME)}{RESET}") else: print(f"{RED}{get_translation(LOCALE, 'goober_ping_fail')} {response.status_code}{RESET}") except Exception as e: @@ -370,7 +370,7 @@ def is_positive(sentence): # forcin this fucker debug_message = f"{DEBUG}{get_translation(LOCALE, 'sentence_positivity')} {sentiment_score}{RESET}" print(debug_message) - + return sentiment_score > 0.1 diff --git a/locales/en.json b/locales/en.json index b3fd597..7ef49ea 100644 --- a/locales/en.json +++ b/locales/en.json @@ -36,7 +36,7 @@ "latest_version": "You're using the latest version:", "latest_version2": "Check {VERSION_URL}/goob/changes.txt to check out the changelog", "pinging_disabled": "Pinging is disabled! Not telling the server im on...", - "goober_ping_success": "Sent alive ping to goober central!", + "goober_ping_success": "Logged into goober central as {NAME}", "goober_ping_fail": "Failed to send data. Server returned status code:", "goober_ping_fail2": "An error occurred while sending data:", "sentence_positivity": "Positivity of sentence is:", diff --git a/locales/it.json b/locales/it.json index 5f78dd8..703625b 100644 --- a/locales/it.json +++ b/locales/it.json @@ -36,7 +36,7 @@ "latest_version": "Stai utilizzando l'ultima versione:", "latest_version2": "Controlla {VERSION_URL}/goob/changes.txt per vedere il changelog", "pinging_disabled": "Il ping è disabilitato! Non dico al server che sono online...", - "goober_ping_success": "Ping inviato con successo a Goober central!", + "goober_ping_success": "Accesso a goober central come {NAME}", "goober_ping_fail": "Impossibile inviare i dati. Il server ha restituito il codice di stato:", "goober_ping_fail2": "Si è verificato un errore durante l'invio dei dati:", "sentence_positivity": "La positività della frase è:",