From 556e112609483c07f7ea416d037612aaec15f4a3 Mon Sep 17 00:00:00 2001
From: Arthur <jovart.arthur@gmail.com>
Date: Sun, 11 Jun 2017 20:47:16 +0200
Subject: [PATCH 1/6] TYPOs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fait gaffe à l'orthographe...
---
 cogs/funs.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cogs/funs.py b/cogs/funs.py
index aaa46db..f8c4d62 100644
--- a/cogs/funs.py
+++ b/cogs/funs.py
@@ -56,7 +56,7 @@ class Funs:
     @commands.command()
     async def ethylotest(self):
         """Ethylotest simulator 2018"""
-        results_poulet = ["Désolé mais mon ethylotest est sous Windows Vista, merci de patienter...", "_(ethylotest)_ ``Une erreur est survenue. Windows cherche une solution à se prolbème...``", "Mais j'l'ai foutu où ce p*** d'ethylotest de m..... bordel fait ch..... tab....", "C'est pas possible z'avez cassé l'ethylotest !"]
+        results_poulet = ["Désolé mais mon ethylotest est sous Windows Vista, merci de patienter...", "_(ethylotest)_ ``Une erreur est survenue. Windows cherche une solution à se problème...``", "Mais j'l'ai foutu où ce p*** d'ethylotest de m*** bordel fait ch*** tab***", "C'est pas possible z'avez cassé l'ethylotest !"]
         results_client = ["D'accord, il n'y a pas de problème à cela je suis complètement clean", "Bien sur si c'est votre devoir !", "Suce bi** !", "J'ai l'air d'être bourré ?", "_laissez moi prendre un bonbon à la menthe..._"]
 
         result_p = random.choice(results_poulet)
@@ -71,8 +71,8 @@ class Funs:
     @commands.command()
     async def coin(self):
         """Coin flip simulator 2025"""
-        starts_msg = ["Je lance la pièce !", "C'est partit !", "C'est une pièce de d'un cent faut pas la perdre", "C'est une pièce de d'un euro faut pas la perdre", "Je lance !"]
-        results_coin = ["{0} pile", "{0} face", "{1} Heu c'est quoi pile c'est quoi face enfaite ?", "{1} How shit, je crois que je l'ai perdu", "{1} Et bim je te vol ta pièce !", "{0} Oh une erreur d'impression y'a ni pile ni face !"]
+        starts_msg = ["Je lance la pièce !", "C'est parti !", "C'est une pièce d'un cent faut pas la perdre", "C'est une pièce d'un euro faut pas la perdre", "Je lance !"]
+        results_coin = ["{0} pile", "{0} face", "{1} Heu c'est quoi pile c'est quoi face enfaite ?", "{1} Oh shit, je crois que je l'ai perdue", "{1} Et bim je te vol ta pièce !", "{0} Oh une erreur d'impression il n'y a ni pile ni face !"]
 
         start = random.choice(starts_msg)
         result = random.choice(results_coin)

From 911567a222ca6324259112afca7e7d76e17be2cc Mon Sep 17 00:00:00 2001
From: Arthur <jovart.arthur@gmail.com>
Date: Sun, 11 Jun 2017 20:50:24 +0200
Subject: [PATCH 2/6] Logique

---
 cogs/admin.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/cogs/admin.py b/cogs/admin.py
index 38b37b2..2ae1d30 100644
--- a/cogs/admin.py
+++ b/cogs/admin.py
@@ -1,10 +1,8 @@
 from discord.ext import commands
-from random import choice, shuffle
 import aiohttp
 import asyncio
 import time
 import discord
-import platform
 from .utils import checks
 
 class Admin:
@@ -33,7 +31,7 @@ class Admin:
             self.bot.unload_extension(module)
             self.bot.load_extension(module)
             await self.bot.say("Nice !")
-        except Exception as e:
+        except Exception as e: #TODO : A virer dans l'event on_error
             await self.bot.say(':( Erreur :')
             await self.bot.say('{}: {}'.format(type(e).__name__, e))
         else:
@@ -46,17 +44,16 @@ class Admin:
             number = number + 1
             await self.bot.purge_from(ctx.message.channel, limit=number)
             await self.bot.say("Hello World !")
-        except Exception as e:
+        except Exception as e: #TODO : A virer dans l'event on_error
             await self.bot.say(':sob: Une erreur est survenue : \n {}: {}'.format(type(e).__name__, e))
 
     @checks.is_owner()
     @commands.command(name='say', pass_context=True, hidden=True)
-    async def _say(self, ctx, dire):
+    async def _say(self, ctx, *dire:str):
         try:
-            arg = ctx.message.content.split("say ")
-            await self.bot.say(arg[1])
+            await self.bot.say(dire)
             await self.bot.delete_message(ctx.message)
-        except Exception as e:
+        except Exception as e: #TODO : A virer dans l'event on_error
             await self.bot.say(':sob: Une erreur est survenue : \n {}: {}'.format(type(e).__name__, e))
 
     @checks.is_owner()

From f26274bbdc8000045efcc40d5c136507cd988df7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl?= <outout14yt@gmail.com>
Date: Sun, 11 Jun 2017 18:28:34 -0400
Subject: [PATCH 3/6] Fix...

---
 bot.py         | 3 +++
 cogs/funs.py   | 9 ++++++---
 cogs/search.py | 2 +-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/bot.py b/bot.py
index 3371cfc..32e3b81 100644
--- a/bot.py
+++ b/bot.py
@@ -89,6 +89,9 @@ async def on_message(message):
     if re.match(r'^<@(\w+)>$', message.content):
         await bot.send_message(message.channel, message.author.mention + " > Tu voulais lui dire quoi ? Tu le mentionne sans message !")
 
+    if re.match(r"[A-Z]{5,}") and not message.author.bot and len(message.content) > 5:
+        await bot.send_message(message.channel, message.author.mention + " > Evite les messages en majuscule, ce n'est pas la peine de crier !")
+
     await bot.process_commands(message)
 
 @bot.command(pass_context=True, hidden=True)
diff --git a/cogs/funs.py b/cogs/funs.py
index aaa46db..c8afd87 100644
--- a/cogs/funs.py
+++ b/cogs/funs.py
@@ -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)
diff --git a/cogs/search.py b/cogs/search.py
index 43882cb..32b6044 100644
--- a/cogs/search.py
+++ b/cogs/search.py
@@ -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 !")

From 34a031fd76a05938b972fb4e8cc4a457699d837f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl?= <outout14yt@gmail.com>
Date: Sun, 11 Jun 2017 18:33:50 -0400
Subject: [PATCH 4/6] Fix of fix

---
 bot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py
index 32e3b81..b11d7f8 100644
--- a/bot.py
+++ b/bot.py
@@ -89,7 +89,7 @@ async def on_message(message):
     if re.match(r'^<@(\w+)>$', message.content):
         await bot.send_message(message.channel, message.author.mention + " > Tu voulais lui dire quoi ? Tu le mentionne sans message !")
 
-    if re.match(r"[A-Z]{5,}") and not message.author.bot and len(message.content) > 5:
+    if re.match(r"[A-Z]{5,}", message.content) and not message.author.bot and len(message.content) > 5:
         await bot.send_message(message.channel, message.author.mention + " > Evite les messages en majuscule, ce n'est pas la peine de crier !")
 
     await bot.process_commands(message)

From 1a920dfeca01a0e2429129fc00e5b11c35298426 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl?= <outout14yt@gmail.com>
Date: Mon, 12 Jun 2017 15:42:58 -0400
Subject: [PATCH 5/6] 2000 !

---
 cogs/ci.py | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/cogs/ci.py b/cogs/ci.py
index 7852b86..c154f49 100644
--- a/cogs/ci.py
+++ b/cogs/ci.py
@@ -57,18 +57,21 @@ class Identity:
             await self.bot.say(ctx.message.author.mention + "> :x: Désolé mais {} est sans papier !".format(args.mention))
 
         else:
-            userbirth = result[3].split(" ")
-            cidate = result[4].split(" ")
-            embed=discord.Embed(title="Carte d'identité | Communisme Linuxien")
-            embed.set_author(name=result[1], icon_url=result[2])
-            embed.set_thumbnail(url = result[2])
-            embed.add_field(name="Nom :", value=result[1], inline=True)
-            embed.add_field(name="Système d'exploitation :", value=isexist(result[6]), inline=True)
-            embed.add_field(name="Configuration Système : ", value=isexist(result[7]), inline=True)
-            embed.add_field(name="Date de naissance : ", value=userbirth[0], inline=True)
-            embed.add_field(name="Pays : ", value=isexist(result[8]), inline=True)
-            embed.set_footer(text="Enregistré dans le bureau {} le {}.".format(result[5], cidate[0]))
-            await self.bot.say(embed=embed)
+            try:
+                userbirth = result[3].split(" ")
+                cidate = result[4].split(" ")
+                embed=discord.Embed(title="Carte d'identité | Communisme Linuxien")
+                embed.set_author(name=result[1], icon_url=result[2])
+                embed.set_thumbnail(url = result[2])
+                embed.add_field(name="Nom :", value=result[1], inline=True)
+                embed.add_field(name="Système d'exploitation :", value=isexist(result[6]), inline=True)
+                embed.add_field(name="Configuration Système : ", value=isexist(result[7]), inline=True)
+                embed.add_field(name="Date de naissance : ", value=userbirth[0], inline=True)
+                embed.add_field(name="Pays : ", value=isexist(result[8]), inline=True)
+                embed.set_footer(text="Enregistré dans le bureau {} le {}.".format(result[5], cidate[0]))
+                await self.bot.say(embed=embed)
+            except:
+                await self.bot.say(ctx.message.author.mention + "> :x: Désolé mais la carte d'identité de {0} est trop longue de ce fait je ne peux te l'envoyer, essaye de l'aléger, {0} :wink: !".format(args.mention))
 
     @_ci.command(pass_context=True, name="register")
     async def ci_register(self, ctx):
@@ -127,7 +130,6 @@ class Identity:
         else:
             await self.bot.say(ctx.message.author.mention + "> :x: Veuillez enregistrer votre carte d'identité pour commencer !")
 
-
     @_ci.command(pass_context=True, name="list")
     async def ci_list(self, ctx):
         cursor.execute("""SELECT id, username FROM users""")

From 8bb5a46f24473a8df50d8d6db3c0d09fcb31a00a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl?= <outout14yt@gmail.com>
Date: Mon, 12 Jun 2017 20:10:59 -0400
Subject: [PATCH 6/6] Fix clock title

---
 cogs/utility.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cogs/utility.py b/cogs/utility.py
index 02bcf9b..a6b35dd 100644
--- a/cogs/utility.py
+++ b/cogs/utility.py
@@ -83,7 +83,7 @@ class Utility:
                     await self.bot.say(embed=em)
                 else:
                     tt = utc.strftime(form)
-                    em = discord.Embed(title='Heure à ' + args[1].title(), description="A [{}]({}) {}, Il est **{}** ! \n {} \n _source des images et du texte : [Wikimedia foundation](http://commons.wikimedia.org/)_".format(str(args), site, str(country), str(tt), str(description)), colour=0xEEEEEE)
+                    em = discord.Embed(title='Heure à ' + args.title(), description="A [{}]({}) {}, Il est **{}** ! \n {} \n _source des images et du texte : [Wikimedia foundation](http://commons.wikimedia.org/)_".format(str(args), site, str(country), str(tt), str(description)), colour=0xEEEEEE)
                     em.set_thumbnail(url = img)
                     await self.bot.say(embed=em)
             except UnboundLocalError: