2025-06-20 23:48:10 +02:00
import os
2025-02-26 21:35:13 +01:00
import platform
2025-06-20 23:48:10 +02:00
from dotenv import load_dotenv
import pathlib
2025-06-28 16:56:05 -04:00
2025-06-20 23:48:10 +02:00
env_path = pathlib . Path ( __file__ ) . parent . parent / ' .env '
load_dotenv ( dotenv_path = env_path )
2025-06-28 16:56:05 -04:00
ANSI = " \033 [ "
RED = f " { ANSI } 31m "
GREEN = f " { ANSI } 32m "
YELLOW = f " { ANSI } 33m "
DEBUG = f " { ANSI } 1;30m "
RESET = f " { ANSI } 0m "
2025-03-23 14:25:50 +01:00
VERSION_URL = " https://goober.expect.ovh "
2025-01-05 23:29:57 +01:00
UPDATE_URL = VERSION_URL + " /latest_version.json "
LOCAL_VERSION_FILE = " current_version.txt "
2025-06-28 16:56:05 -04:00
TOKEN = os . getenv ( " DISCORD_BOT_TOKEN " , " 0 " )
PREFIX = os . getenv ( " BOT_PREFIX " , " g. " )
2025-01-05 23:29:57 +01:00
PING_LINE = os . getenv ( " PING_LINE " )
2025-07-05 20:15:54 +02:00
CHECKS_DISABLED = os . getenv ( " CHECKS_DISABLED " )
2025-06-28 16:56:05 -04:00
LOCALE = os . getenv ( " locale " , " en " )
2025-03-16 16:39:26 +01:00
gooberTOKEN = os . getenv ( " gooberTOKEN " )
2025-01-05 23:29:57 +01:00
splashtext = os . getenv ( " splashtext " )
2025-06-28 16:56:05 -04:00
ownerid = int ( os . getenv ( " ownerid " , " 0 " ) )
2025-01-05 23:29:57 +01:00
showmemenabled = os . getenv ( " showmemenabled " )
BLACKLISTED_USERS = os . getenv ( " BLACKLISTED_USERS " , " " ) . split ( " , " )
USERTRAIN_ENABLED = os . getenv ( " USERTRAIN_ENABLED " , " true " ) . lower ( ) == " true "
NAME = os . getenv ( " NAME " )
MEMORY_FILE = " memory.json "
2025-07-07 00:57:54 +02:00
MEMORY_LOADED_FILE = " MEMORY_LOADED " # is this still even used?? okay just checked its used in the markov module
2025-01-05 23:29:57 +01:00
ALIVEPING = os . getenv ( " ALIVEPING " )
2025-06-21 00:01:33 +02:00
AUTOUPDATE = os . getenv ( " AUTOUPDATE " )
2025-07-07 00:57:54 +02:00
# IGNOREWARNING = False # is this either??? i don't think so?
2025-01-05 23:29:57 +01:00
song = os . getenv ( " song " )
2025-02-26 20:43:44 +01:00
arch = platform . machine ( )
2025-07-07 00:57:54 +02:00
slash_commands_enabled = True # 100% broken, its a newer enough version so its probably enabled by default.... fix this at somepoint or hard code it in goober central code
2025-06-29 19:44:56 +02:00
launched = False
2025-06-20 23:48:10 +02:00
latest_version = " 0.0.0 "
2025-07-07 13:05:50 +02:00
local_version = " 2.0.2 "
2025-06-21 18:25:00 +02:00
os . environ [ ' gooberlocal_version ' ] = local_version
2025-07-06 23:44:04 +02:00
REACT = os . getenv ( " REACT " )
2025-07-07 17:18:29 +02:00
beta = False # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks
2025-07-06 23:44:04 +02:00