From d001bdf3d5e25eed4c8de0d8871727cb386f94d4 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 15 Dec 2024 16:03:54 +0100 Subject: [PATCH] a --- main-bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main-bot.py b/main-bot.py index 9cc4342..dcefd60 100644 --- a/main-bot.py +++ b/main-bot.py @@ -20,6 +20,7 @@ bot = GammaRPBot(intents) @bot.event async def on_ready(): bot.db = await aiosqlite.connect("main.db") + bot.db.row_factory = aiosqlite.Row await bot.load_extension("perso_commands") await bot.tree.sync() print(f"Logged in as {bot.user}") @@ -30,6 +31,8 @@ async def on_message(message): if message.author.bot: return if message.content.startswith("g!"): + if len(message.content.split(" "))<2: + return short_name = message.content.split(" ")[0][2:] uuid = message.author.id guild_id = message.guild.id