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