From 763dd510888f227309547c7eaff8b37c1af1c98c Mon Sep 17 00:00:00 2001
From: Mael G <outout14yt@gmail.com>
Date: Sun, 28 Jul 2019 15:27:17 -0400
Subject: [PATCH] Hastebin is so has been

---
 cogs/utility.py | 14 --------------
 texts/help.md   |  1 -
 2 files changed, 15 deletions(-)

diff --git a/cogs/utility.py b/cogs/utility.py
index 25324bb..5a0859a 100755
--- a/cogs/utility.py
+++ b/cogs/utility.py
@@ -196,20 +196,6 @@ class Utility(commands.Cog):
 
     """---------------------------------------------------------------------"""
 
-    @commands.command(name='hastebin', pass_context=True)
-    async def _hastebin(self, ctx, *, data):
-        """Poster sur Hastebin."""
-        await ctx.message.delete()
-
-        post = requests.post("https://hastebin.com/documents", data=data)
-
-        try:
-            await ctx.send(f"{ctx.author.mention} message posté avec succès sur :\nhttps://hastebin.com/{post.json()['key']}.txt")
-        except json.JSONDecodeError:
-            await ctx.send("Impossible de poster ce message. L'API doit être HS.")
-
-    """---------------------------------------------------------------------"""
-
     @commands.command(name='iplocalise', pass_context=True)
     async def _iplocalise(self, ctx, ipaddress):
         """Recup headers."""
diff --git a/texts/help.md b/texts/help.md
index ec6a86a..af4a900 100755
--- a/texts/help.md
+++ b/texts/help.md
@@ -6,7 +6,6 @@
 -> .search _site_ _contenu_ : Fait une recherche sur un site (.search pour plus d'infos)
 -> .avatar _@pseudo_ : Récupère l'avatar de _@pseudo_
 -> .poke _@pseudo_ : Poke _@pseudo_
--> .hastebin _code_ : Poste du code sur hastebin
 -> .sondage _question_ | _reponse_ | _reponse_ | _option_ : Créer un sondage avec des réactions
 -> .sondage : Affiche l'aide pour la commande sondage
 -> .role _nomdurole_ : Ajoute/Retire le rôle en question