Making sure that the cuddle/kiss is guild specific too

pull/8/head
sgoudham 4 years ago
parent 9d104e494b
commit d12c8453e7

@ -35,12 +35,15 @@ class Interactive(commands.Cog):
async def kiss(self, ctx, target: Member):
"""Allows users to kiss a person in the server"""
# Get the guild
guild = ctx.author.guild
# Use database connection
with db.connection() as conn:
# Get the author's row from the Members Table
select_query = """SELECT * FROM members WHERE discordID = (?)"""
val = ctx.author.id,
select_query = """SELECT * FROM members WHERE discordID = (?) and guildID = (?)"""
val = ctx.author.id, guild.id,
cursor = conn.cursor()
# Execute the SQL Query

Loading…
Cancel
Save