Logging every member join in every guild

Deleting every member from every guild if they leave
pull/8/head
sgoudham 5 years ago
parent fba6c734f6
commit 5c20261810

@ -111,7 +111,7 @@ async def on_member_join(member):
with db.connection() as conn:
name = f"{member.name}#{member.discriminator}"
# Define the Insert Into Statement inserting into the database
insert_query = """INSERT INTO members (guildID, discordUser, discordID) VALUES (?, ?)"""
insert_query = """INSERT INTO members (guildID, discordUser, discordID) VALUES (?, ?, ?)"""
vals = member.guild.id, name, member.id,
cursor = conn.cursor()

Loading…
Cancel
Save