From c295265e0bd3ad0d6bff7a9b0ca274934f836e6e Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 1 May 2017 15:58:58 -0500 Subject: [PATCH] Correct how to get player1 --- cogs/interaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/interaction.py b/cogs/interaction.py index 69e5006..fe6cc2f 100644 --- a/cogs/interaction.py +++ b/cogs/interaction.py @@ -207,7 +207,7 @@ class Interaction: await ctx.send("You are not currently being challenged to a battle!") return - battleP1 = discord.utils.find(lambda m: m.id == p1[0], ctx.message.guild.members) + battleP1 = discord.utils.find(lambda m: m.id == battle['p1'], ctx.message.guild.members) if battleP1 is None: await ctx.send("The person who challenged you to a battle has apparently left the server....why?") return @@ -243,7 +243,7 @@ class Interaction: await ctx.send("You are not currently being challenged to a battle!") return - battleP1 = discord.utils.find(lambda m: m.id == p1[0], ctx.message.guild.members) + battleP1 = discord.utils.find(lambda m: m.id == battle['p1'], ctx.message.guild.members) if battleP1 is None: await ctx.send("The person who challenged you to a battle has apparently left the server....why?") return