1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Correct how to get player1

This commit is contained in:
Phxntxm 2017-05-01 15:58:58 -05:00
parent 89129a5d88
commit c295265e0b

View file

@ -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