Merge pull request #7 from AZthemute/main

Fix ping protect
This commit is contained in:
Lilac Rose
2026-05-21 12:59:20 -04:00
committed by GitHub

View File

@@ -111,10 +111,7 @@ class PingProtect(commands.GroupCog, name="noping"):
INSERT OR IGNORE INTO allowlists (protected_user_id, allowed_user_id)
VALUES (?, ?)
""", (interaction.user.id, user.id))
await db.commit()You need the no-pings role to use this.", ephemeral=True)
return
async with aiosqlite.connect(DB_PATH) as db:
await db.commit()
await interaction.response.send_message(f"{user.display_name} can now ping you.", ephemeral=True)