Getting the right column of results

pull/8/head
sgoudham 5 years ago
parent 0d48e904a2
commit 9d104e494b

@ -37,7 +37,7 @@ class Relationship(commands.Cog):
await ctx.send("Senpaii! ˭̡̞(◞⁎˃ᆺ˂)◞*✰ You can't possibly marry yourself!") await ctx.send("Senpaii! ˭̡̞(◞⁎˃ᆺ˂)◞*✰ You can't possibly marry yourself!")
return return
# Make sure that the person is not already married to someone else within the server # Make sure that the person is not already married to someone else within the server
elif result[3] is not None: elif result[2] is not None:
member = guild.get_member(int(result[2])) member = guild.get_member(int(result[2]))
await ctx.send(f"((╬◣﹏◢)) You're already married to {member.mention}!") await ctx.send(f"((╬◣﹏◢)) You're already married to {member.mention}!")
return return
@ -118,12 +118,12 @@ class Relationship(commands.Cog):
await ctx.send("Senpaii! ˭̡̞(◞⁎˃ᆺ˂)◞*✰ You can't possibly divorce yourself!") await ctx.send("Senpaii! ˭̡̞(◞⁎˃ᆺ˂)◞*✰ You can't possibly divorce yourself!")
return return
# Make sure that the person trying to divorce is actually married to the user # Make sure that the person trying to divorce is actually married to the user
elif result[3] is None: elif result[2] is None:
await ctx.send(f"((╬◣﹏◢)) You must be married in order to divorce someone! Baka!") await ctx.send(f"((╬◣﹏◢)) You must be married in order to divorce someone! Baka!")
return return
# Make sure the person is married to the person that they're trying to divorce # Make sure the person is married to the person that they're trying to divorce
elif result[3] != str(member.id): elif result[2] != str(member.id):
member = guild.get_member(int(result[3])) member = guild.get_member(int(result[2]))
await ctx.send(f"( ゜口゜) You can only divorce the person that you're married!" await ctx.send(f"( ゜口゜) You can only divorce the person that you're married!"
f"\n That person is {member.mention}") f"\n That person is {member.mention}")
return return

Loading…
Cancel
Save