cleaned up the .env n shit

This commit is contained in:
WhatDidYouExpect 2025-07-09 22:57:59 +02:00
parent ffeefaa1a4
commit 24beb9a42e
5 changed files with 35 additions and 31 deletions

1
bot.py
View file

@ -468,6 +468,7 @@ async def about(ctx: commands.Context) -> None:
embed: discord.Embed = discord.Embed(title=f"{(_('command_about_embed_title'))}", description="", color=Colour(0x000000)) embed: discord.Embed = discord.Embed(title=f"{(_('command_about_embed_title'))}", description="", color=Colour(0x000000))
embed.add_field(name=f"{(_('command_about_embed_field1'))}", value=f"{NAME}", inline=False) embed.add_field(name=f"{(_('command_about_embed_field1'))}", value=f"{NAME}", inline=False)
embed.add_field(name=f"{(_('command_about_embed_field2name'))}", value=f"{(_('command_about_embed_field2value')).format(local_version=local_version, latest_version=latest_version)}", inline=False) embed.add_field(name=f"{(_('command_about_embed_field2name'))}", value=f"{(_('command_about_embed_field2value')).format(local_version=local_version, latest_version=latest_version)}", inline=False)
embed.add_field(name=f"Github", value=f"https://github.com/gooberinc/goober")
await send_message(ctx, embed=embed) await send_message(ctx, embed=embed)

View file

@ -1,18 +1,21 @@
DISCORD_BOT_TOKEN=token DISCORDBOTTOKEN=
BOT_PREFIX="g." BOTPREFIX="g."
PING_LINE="The Beretta fires fast and won't make you feel any better!" PINGLINE="The Beretta fires fast and won't make you feel any better!"
BLACKLISTED_USERS= BLACKLISTEDUSERS=
USERTRAIN_ENABLED="true" OWNERID=
showmemenabled="true" USERTRAINENABLED="true"
NAME="an instance of goober" SHOWMEMENABLED="true"
locale=fi NAME="gooberino goobs"
ALIVEPING="true" LOCALE=fi
ALIVEPING="True"
AUTOUPDATE="True" AUTOUPDATE="True"
gooberTOKEN= GOOBERTOKEN=
song="A Heart of Cold - Heaven Pierce Her" SONG="Basket Case - Green Day"
CHECKSDISABLED="Frue"
REACT="True" REACT="True"
POSITIVE_GIFS="https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272, https://tenor.com/view/goodnight-goodnight-friends-weezer-weezer-goodnight-gif-7322052181075806988" POSITIVEGIFS="https://media.discordapp.net/attachments/821047460151427135/1181371808566493184/jjpQGeno.gif, https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272,https://tenor.com/view/goodnight-goodnight-friends-weezer-weezer-goodnight-gif-7322052181075806988"
splashtext=" SPLASHTEXT="
SS\ SS\
SS | SS |
SSSSSS\ SSSSSS\ SSSSSS\ SSSSSSS\ SSSSSS\ SSSSSS\ SSSSSS\ SSSSSS\ SSSSSS\ SSSSSSS\ SSSSSS\ SSSSSS\

View file

@ -54,7 +54,7 @@ def is_name_available(NAME):
return data.get("available", False) return data.get("available", False)
else: else:
# Print error if request failed # Print error if request failed
logger.e(f"{(_('name_check'))}", response.json()) logger.error(f"{(_('name_check'))}", response.json())
return False return False
except Exception as e: except Exception as e:
# Print exception if request failed # Print exception if request failed
@ -69,7 +69,7 @@ def register_name(NAME):
return return
# Check if the name is available # Check if the name is available
if not is_name_available(NAME): if not is_name_available(NAME):
if os.getenv("gooberTOKEN"): if os.getenv("GOOBERTOKEN"):
return return
# Name taken: print error and exit # Name taken: print error and exit
logger.critical(f"{(_('name_taken'))}") logger.critical(f"{(_('name_taken'))}")

View file

@ -16,17 +16,17 @@ RESET = f"{ANSI}0m"
VERSION_URL = "https://goober.expect.ovh" VERSION_URL = "https://goober.expect.ovh"
UPDATE_URL = VERSION_URL+"/latest_version.json" UPDATE_URL = VERSION_URL+"/latest_version.json"
LOCAL_VERSION_FILE = "current_version.txt" LOCAL_VERSION_FILE = "current_version.txt"
TOKEN = os.getenv("DISCORD_BOT_TOKEN", "0") TOKEN = os.getenv("DISCORDBOTTOKEN", "0")
PREFIX = os.getenv("BOT_PREFIX", "g.") PREFIX = os.getenv("BOTPREFIX", "g.")
PING_LINE = os.getenv("PING_LINE") PING_LINE = os.getenv("PINGLINE")
CHECKS_DISABLED = os.getenv("CHECKS_DISABLED") CHECKS_DISABLED = os.getenv("CHECKSDISABLED")
LOCALE = os.getenv("locale", "en") LOCALE = os.getenv("LOCALE", "en")
gooberTOKEN = os.getenv("gooberTOKEN") gooberTOKEN = os.getenv("GOOBERTOKEN")
splashtext = os.getenv("splashtext") splashtext = os.getenv("SPLASHTEXT")
ownerid = int(os.getenv("ownerid", "0")) ownerid = int(os.getenv("OWNERID", "0"))
showmemenabled = os.getenv("showmemenabled") showmemenabled = os.getenv("SHOWMEMENABLED")
BLACKLISTED_USERS = os.getenv("BLACKLISTED_USERS", "").split(",") BLACKLISTED_USERS = os.getenv("BLACKLISTEDUSERS", "").split(",")
USERTRAIN_ENABLED = os.getenv("USERTRAIN_ENABLED", "true").lower() == "true" USERTRAIN_ENABLED = os.getenv("USERTRAINENABLED", "true").lower() == "true"
NAME = os.getenv("NAME") NAME = os.getenv("NAME")
MEMORY_FILE = "memory.json" MEMORY_FILE = "memory.json"
MEMORY_LOADED_FILE = "MEMORY_LOADED" # is this still even used?? okay just checked its used in the markov module MEMORY_LOADED_FILE = "MEMORY_LOADED" # is this still even used?? okay just checked its used in the markov module
@ -41,5 +41,5 @@ latest_version = "0.0.0"
local_version = "2.1.3" local_version = "2.1.3"
os.environ['gooberlocal_version'] = local_version os.environ['gooberlocal_version'] = local_version
REACT = os.getenv("REACT") REACT = os.getenv("REACT")
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 beta = True # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks

View file

@ -18,7 +18,7 @@ RESET = f"{ANSI}0m"
load_dotenv() load_dotenv()
LOCALE = os.getenv("locale") LOCALE = os.getenv("LOCALE")
module_dir = pathlib.Path(__file__).parent.parent module_dir = pathlib.Path(__file__).parent.parent
working_dir = pathlib.Path.cwd() working_dir = pathlib.Path.cwd()
EXCLUDE_DIRS = {'.git', '__pycache__'} EXCLUDE_DIRS = {'.git', '__pycache__'}