From 70c80d492ccbb4b6b852af3eefda6cdb3f810f64 Mon Sep 17 00:00:00 2001 From: Dotsian Date: Thu, 30 Jan 2025 16:37:51 -0500 Subject: [PATCH 1/2] Update installer.py --- installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer.py b/installer.py index c63f695..9c91db7 100644 --- a/installer.py +++ b/installer.py @@ -79,7 +79,7 @@ async def error(self, error, exception=False): description = ( f"Please submit a [bug report]" - f"() to the GitHub page" + f"() to the GitHub page" ) if exception: @@ -93,7 +93,7 @@ async def error(self, error, exception=False): fields = {"embed": self.embed} if exception: - fields["file"] = discord.File(StringIO(error), filename="DexScript.log") + fields["attachments"] = [discord.File(StringIO(error), filename="DexScript.log")] await self.message.edit(**fields) From e96b6047bfdfe6e1f0c7249feccb9748a43cdf06 Mon Sep 17 00:00:00 2001 From: Dotsian Date: Thu, 30 Jan 2025 16:38:53 -0500 Subject: [PATCH 2/2] Remove `USER` --- dexscript.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dexscript.py b/dexscript.py index 7527b01..9ee48e7 100644 --- a/dexscript.py +++ b/dexscript.py @@ -18,10 +18,9 @@ dir_type = "ballsdex" if os.path.isdir("ballsdex") else "carfigures" if dir_type == "ballsdex": - from ballsdex.core.models import Ball, Economy, GuildConfig, Regime, Special, User + from ballsdex.core.models import Ball, Economy, GuildConfig, Regime, Special from ballsdex.settings import settings else: - from carfigures.core.models import Admin as User from carfigures.core.models import Car as Ball from carfigures.core.models import CarType as Regime from carfigures.core.models import Country as Economy @@ -39,7 +38,6 @@ FILENAME_RE = re.compile(r"^(.+)(\.\S+)$") MODELS = { - "user": [User, "USERNAME"], "guildconfig": [GuildConfig, "ID"], "ball": [Ball, "COUNTRY"], "regime": [Regime, "NAME"], @@ -340,7 +338,7 @@ async def create_model(self, model, identifier, yield_creation): fields[key] = 1 - if key in ["country", "full_name", "catch_names", "name", "username"]: + if key in ["country", "full_name", "catch_names", "name"]: fields[key] = identifier elif key == "emoji_id": fields[key] = 100**8