commit before utter laptop death
This commit is contained in:
parent
4e111b410d
commit
d6b51c787a
11 changed files with 163 additions and 221 deletions
|
@ -1,4 +1,5 @@
|
|||
from modules.globalvars import *
|
||||
from modules.settings import Settings as SettingsManager
|
||||
from modules.volta.main import _, check_missing_translations
|
||||
import time
|
||||
import os
|
||||
|
@ -14,6 +15,13 @@ import logging
|
|||
|
||||
logger = logging.getLogger("goober")
|
||||
|
||||
settings_manager = SettingsManager()
|
||||
settings = settings_manager.settings
|
||||
MEMORY_FILE = settings["bot"]["active_memory"]
|
||||
with open(settings["splash_text_loc"], "r", encoding="UTF-8") as f:
|
||||
splash_text = "".join(f.readlines())
|
||||
|
||||
|
||||
# import shutil
|
||||
psutilavaliable = True
|
||||
try:
|
||||
|
@ -210,8 +218,8 @@ def presskey2skip(timeout):
|
|||
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
|
||||
beta = beta
|
||||
def start_checks():
|
||||
if CHECKS_DISABLED == "True":
|
||||
logger.warning(f"{(_('checks_disabled'))}")
|
||||
if settings["disable_checks"]:
|
||||
logger.warning(f"{_('checks_disabled')}")
|
||||
return
|
||||
logger.info(_('running_prestart_checks'))
|
||||
check_for_model()
|
||||
|
@ -233,5 +241,4 @@ def start_checks():
|
|||
pass
|
||||
logger.info(_('continuing_in_seconds').format(seconds=5))
|
||||
presskey2skip(timeout=5)
|
||||
os.system('cls' if os.name == 'nt' else 'clear')
|
||||
print(splashtext)
|
||||
os.system('cls' if os.name == 'nt' else 'clear')
|
Loading…
Add table
Add a link
Reference in a new issue