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
|
|
|
|
env_path = pathlib.Path(__file__).parent.parent / '.env'
|
|
|
|
load_dotenv(dotenv_path=env_path)
|
|
|
|
|
2025-02-26 21:35:13 +01:00
|
|
|
|
2025-06-20 23:48:10 +02:00
|
|
|
RED = "\033[31m"
|
|
|
|
GREEN = "\033[32m"
|
|
|
|
YELLOW = "\033[33m"
|
|
|
|
DEBUG = "\033[1;30m"
|
|
|
|
RESET = "\033[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"
|
|
|
|
TOKEN = os.getenv("DISCORD_BOT_TOKEN")
|
|
|
|
PREFIX = os.getenv("BOT_PREFIX")
|
|
|
|
hourlyspeak = int(os.getenv("hourlyspeak"))
|
|
|
|
PING_LINE = os.getenv("PING_LINE")
|
|
|
|
random_talk_channel_id1 = int(os.getenv("rnd_talk_channel1"))
|
2025-03-16 16:39:26 +01:00
|
|
|
LOCALE = os.getenv("locale")
|
|
|
|
gooberTOKEN = os.getenv("gooberTOKEN")
|
2025-01-05 23:29:57 +01:00
|
|
|
random_talk_channel_id2 = int(os.getenv("rnd_talk_channel2"))
|
|
|
|
cooldown_time = os.getenv("cooldown")
|
|
|
|
splashtext = os.getenv("splashtext")
|
|
|
|
ownerid = int(os.getenv("ownerid"))
|
|
|
|
showmemenabled = os.getenv("showmemenabled")
|
|
|
|
BLACKLISTED_USERS = os.getenv("BLACKLISTED_USERS", "").split(",")
|
|
|
|
USERTRAIN_ENABLED = os.getenv("USERTRAIN_ENABLED", "true").lower() == "true"
|
|
|
|
NAME = os.getenv("NAME")
|
|
|
|
last_random_talk_time = 0
|
|
|
|
MEMORY_FILE = "memory.json"
|
|
|
|
DEFAULT_DATASET_FILE = "defaultdataset.json"
|
|
|
|
MEMORY_LOADED_FILE = "MEMORY_LOADED"
|
|
|
|
ALIVEPING = os.getenv("ALIVEPING")
|
2025-06-21 00:01:33 +02:00
|
|
|
AUTOUPDATE = os.getenv("AUTOUPDATE")
|
2025-02-26 21:35:13 +01:00
|
|
|
IGNOREWARNING = False
|
2025-01-05 23:29:57 +01:00
|
|
|
song = os.getenv("song")
|
2025-02-26 20:43:44 +01:00
|
|
|
arch = platform.machine()
|
2025-06-20 23:48:10 +02:00
|
|
|
slash_commands_enabled = False
|
|
|
|
latest_version = "0.0.0"
|
|
|
|
local_version = "0.15.0"
|
|
|
|
os.environ['gooberlocal_version'] = local_version
|