This commit is contained in:
GZod01 2024-12-15 16:03:54 +01:00
parent b05baaea2d
commit d001bdf3d5

View file

@ -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