forked from gooberinc/goober
last one i swear to diddy
This commit is contained in:
parent
23774d3199
commit
9715539408
7 changed files with 9 additions and 8 deletions
5
bot.py
5
bot.py
|
@ -115,6 +115,7 @@ used_words = set()
|
|||
async def on_ready():
|
||||
global launched
|
||||
global slash_commands_enabled
|
||||
global NAME
|
||||
folder_name = "cogs"
|
||||
if launched == True:
|
||||
return
|
||||
|
@ -129,7 +130,7 @@ async def on_ready():
|
|||
print(f"{GREEN}{get_translation(LOCALE, 'synced_commands')} {len(synced)} {get_translation(LOCALE, 'synced_commands2')} {RESET}")
|
||||
slash_commands_enabled = True
|
||||
ping_server() # ping_server from modules/central.py
|
||||
print(f"{GREEN}{get_translation(LOCALE, 'started').format()}{RESET}")
|
||||
print(f"{GREEN}{get_translation(LOCALE, 'started').format(NAME=NAME)}{RESET}")
|
||||
except discord.errors.Forbidden as perm_error:
|
||||
print(f"{RED}Permission error while syncing commands: {perm_error}{RESET}")
|
||||
print(f"{RED}Make sure the bot has the 'applications.commands' scope and is invited with the correct permissions.{RESET}")
|
||||
|
@ -138,7 +139,7 @@ async def on_ready():
|
|||
print(f"{RED}{get_translation(LOCALE, 'fail_commands_sync')} {e}{RESET}")
|
||||
traceback.print_exc()
|
||||
quit()
|
||||
print(f"{GREEN}{get_translation(LOCALE, 'started').format()}{RESET}")
|
||||
print(f"{GREEN}{get_translation(LOCALE, 'started').format(NAME=NAME)}{RESET}")
|
||||
except Exception as e:
|
||||
print(f"{RED}{get_translation(LOCALE, 'fail_commands_sync')} {e}{RESET}")
|
||||
traceback.print_exc()
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"synced_commands": "Synced",
|
||||
"synced_commands2": "commands!",
|
||||
"fail_commands_sync": "Failed to sync commands:",
|
||||
"started": "Goober has started!",
|
||||
"started": "{name} has started!",
|
||||
"name_check": "Error checking name availability:",
|
||||
"name_taken": "Name is already taken. Please choose a different name.",
|
||||
"name_check2": "Error during name availability check:",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"synced_commands": "Sincronizado",
|
||||
"synced_commands2": "comandos!",
|
||||
"fail_commands_sync": "Error al sincronizar comandos:",
|
||||
"started": "Goober ha empezado!",
|
||||
"started": "{name} ha empezado!",
|
||||
"name_check": "Error al comprobar la disponibilidad del nombre:",
|
||||
"name_taken": "El nombre ya está en uso. Elija otro.",
|
||||
"name_check2": "Error durante la comprobacion de disponibilidad del nombre:",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"synced_commands": "Synkronoitiin",
|
||||
"synced_commands2": "komennot!",
|
||||
"fail_commands_sync": "Komentojen synkronointi epäonnistui:",
|
||||
"started": "Goober on käynnistynyt!",
|
||||
"started": "{name} on käynnistynyt!",
|
||||
"name_check": "Nimen saatavuuden tarkistus epäonnistui:",
|
||||
"name_taken": "Nimi on jo käytössä. Valitse toinen nimi.",
|
||||
"name_check2": "Virhe tapahtui nimen saatavuuden tarkistamisessa:",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"synced_commands": "Synchronisé",
|
||||
"synced_commands2": "commandes !",
|
||||
"fail_commands_sync": "Échec de la synchronisation des commandes :",
|
||||
"started": "Goober a démarré !",
|
||||
"started": "{name} a démarré !",
|
||||
"name_check": "Erreur lors de la vérification de la disponibilité du nom :",
|
||||
"name_taken": "Le nom est déjà pris. Veuillez choisir un autre nom.",
|
||||
"name_check2": "Erreur lors de la vérification de la disponibilité du nom :",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"synced_commands": "Sincronizzati",
|
||||
"synced_commands2": "comandi!",
|
||||
"fail_commands_sync": "Impossibile sincronizzare i comandi:",
|
||||
"started": "Goober è stato avviato!",
|
||||
"started": "{name} è stato avviato!",
|
||||
"name_check": "Errore nel controllo disponibilità del nome:",
|
||||
"name_taken": "Il nome è già preso. Scegli un nome diverso.",
|
||||
"name_check2": "Errore durante il controllo della disponibilità del nome:",
|
||||
|
|
|
@ -40,5 +40,5 @@ song = os.getenv("song")
|
|||
arch = platform.machine()
|
||||
slash_commands_enabled = False
|
||||
latest_version = "0.0.0"
|
||||
local_version = "0.15.7"
|
||||
local_version = "0.15.8"
|
||||
os.environ['gooberlocal_version'] = local_version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue