This commit is contained in:
Maël 2017-06-11 18:28:34 -04:00
commit f26274bbdc
3 changed files with 10 additions and 4 deletions

View file

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

View file

@ -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 !")