Fix...
This commit is contained in:
parent
001fc87c20
commit
f26274bbdc
3 changed files with 10 additions and 4 deletions
|
@ -90,10 +90,13 @@ class Funs:
|
|||
poke1 = jk[random.randint(1, 150)]
|
||||
poke2 = jk[random.randint(1, 150)]
|
||||
|
||||
if poke1['MaxHP'] > poke2['MaxHP']:
|
||||
try:
|
||||
if poke1['MaxHP'] > poke2['MaxHP']:
|
||||
winer = poke1
|
||||
else:
|
||||
winer = poke2
|
||||
except:
|
||||
winer = poke1
|
||||
else:
|
||||
winer = poke2
|
||||
|
||||
await self.bot.say(":flag_white: **Le combat commence !**")
|
||||
await asyncio.sleep(1)
|
||||
|
|
|
@ -113,7 +113,7 @@ class Search:
|
|||
await self.bot.say(":open_mouth: Une **erreur interne** est survenue, si cela ce reproduit contactez votre administrateur ou faites une Issue sur ``github`` !")
|
||||
except UnboundLocalError:
|
||||
await self.bot.say(":interrobang: Veuillez choisir une réaction valide !")
|
||||
except DisambiguationError:
|
||||
except:
|
||||
await self.bot.say(":open_mouth: Une **erreur interne** est survenue, si cela ce reproduit contactez votre administrateur ou faites une Issue sur ``github`` !")
|
||||
except IndexError:
|
||||
await self.bot.say(" :interrobang: Veuillez entrer un terme de recherche !")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue