Corrected issue with battling
This commit is contained in:
parent
caef4fc54f
commit
5d212e36bf
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue