1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Corrected issue with battling

This commit is contained in:
Phxntxm 2016-07-18 14:50:34 -05:00
parent caef4fc54f
commit 5d212e36bf

View file

@ -111,12 +111,12 @@ class Interaction:
await self.bot.say(fmt.format(battleP1.mention, battleP2.mention))
if not updateBattleRecords(battleP1, battleP2):
await self.bot.say("I was unable to save this data")
battlingOff({'player2': ctx.message.author.id})
battlingOff(player2 = ctx.message.author.id)
elif num > 50:
await self.bot.say(fmt.format(battleP2.mention, battleP1.mention))
if not updateBattleRecords(battleP2, battleP1):
await self.bot.say("I was unable to save this data")
battlingOff({'player2': ctx.message.author.id})
battlingOff(player2 = ctx.message.author.id)
@commands.command(pass_context=True, no_pm=True)
@checks.customPermsOrRole("none")
@ -132,7 +132,7 @@ class Interaction:
await self.bot.say("{0} has chickened out! {1} wins by default!".format(battleP2.mention, battleP1.mention))
if not updateBattleRecords(battleP1, battleP2):
await self.bot.say("I was unable to save this data")
battlingOff({'player2': ctx.message.author.id})
battlingOff(player2 = ctx.message.author.id)
@commands.command(pass_context=True, no_pm=True)
@checks.customPermsOrRole("none")