changed sent alive ping to logged in as
This commit is contained in:
parent
8dace1a547
commit
67832c6534
3 changed files with 4 additions and 4 deletions
2
bot.py
2
bot.py
|
@ -354,7 +354,7 @@ def ping_server():
|
||||||
try:
|
try:
|
||||||
response = requests.post(VERSION_URL+"/ping", json=payload)
|
response = requests.post(VERSION_URL+"/ping", json=payload)
|
||||||
if response.status_code == 200:
|
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:
|
else:
|
||||||
print(f"{RED}{get_translation(LOCALE, 'goober_ping_fail')} {response.status_code}{RESET}")
|
print(f"{RED}{get_translation(LOCALE, 'goober_ping_fail')} {response.status_code}{RESET}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"latest_version": "You're using the latest version:",
|
"latest_version": "You're using the latest version:",
|
||||||
"latest_version2": "Check {VERSION_URL}/goob/changes.txt to check out the changelog",
|
"latest_version2": "Check {VERSION_URL}/goob/changes.txt to check out the changelog",
|
||||||
"pinging_disabled": "Pinging is disabled! Not telling the server im on...",
|
"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_fail": "Failed to send data. Server returned status code:",
|
||||||
"goober_ping_fail2": "An error occurred while sending data:",
|
"goober_ping_fail2": "An error occurred while sending data:",
|
||||||
"sentence_positivity": "Positivity of sentence is:",
|
"sentence_positivity": "Positivity of sentence is:",
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"latest_version": "Stai utilizzando l'ultima versione:",
|
"latest_version": "Stai utilizzando l'ultima versione:",
|
||||||
"latest_version2": "Controlla {VERSION_URL}/goob/changes.txt per vedere il changelog",
|
"latest_version2": "Controlla {VERSION_URL}/goob/changes.txt per vedere il changelog",
|
||||||
"pinging_disabled": "Il ping è disabilitato! Non dico al server che sono online...",
|
"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_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:",
|
"goober_ping_fail2": "Si è verificato un errore durante l'invio dei dati:",
|
||||||
"sentence_positivity": "La positività della frase è:",
|
"sentence_positivity": "La positività della frase è:",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue