a
This commit is contained in:
parent
b05baaea2d
commit
d001bdf3d5
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue