1
0
Fork 0
mirror of synced 2024-09-29 08:51:53 +13:00

Fixed syntax error

This commit is contained in:
Phxntxm 2016-07-18 14:37:24 -05:00
parent f937b17539
commit caef4fc54f

View file

@ -102,7 +102,7 @@ class Interaction:
return
battling = config.getContent('battling')
battleP1 = ctx.message.author
for p1_id,p2_id in battling:
for p1_id,p2_id in battling.items():
if p2_id == ctx.message.author.id:
battleP2 = discord.utils.find(lambda m: m.id == p2_id,ctx.message.server.members)
num = random.randint(1, 100)
@ -126,7 +126,7 @@ class Interaction:
await self.bot.say("You are not currently in a battle!")
return
battleP1 = ctx.message.author
for p1_id,p2_id in battling:
for p1_id,p2_id in battling.items():
if p2_id == ctx.message.author.id:
battleP2 = discord.utils.find(lambda m: m.id == p2_id,ctx.message.server.members)
await self.bot.say("{0} has chickened out! {1} wins by default!".format(battleP2.mention, battleP1.mention))