diff --git a/cogs/utility.py b/cogs/utility.py index 8d496f1..30d5f49 100755 --- a/cogs/utility.py +++ b/cogs/utility.py @@ -284,13 +284,23 @@ class Utility(commands.Cog): await ctx.send(embed=embed) print('''An error occurred: {} The response code was {}'''.format(e, e.getcode())) except urllib.error.URLError as e: - print("ERROR @ getheaders @ urlerror : {} - adress {}".format(e, adresse)) if "No address associated" in str(e): await ctx.send("Erreur, aucune adresse n'est associé à ce nom d'hôte.") return if "timed out" in str(e): await ctx.send("Erreur, l'adresse en question dépasse le délais d'attente :(") return + if "SSL" in str(e): + await ctx.send("Erreur avec le certificat SSL, essayez sans ``https://`` !") + return + return + if "no host": + await ctx.send("Erreur, aucun nom d'hôte n'a été donné.") + return + if "not known": + await ctx.send("Erreur, nom de l'hôte inconnu.") + return + print("ERROR @ getheaders @ urlerror : {} - adress {}".format(e, adresse)) await ctx.send('[CONTACTER ADMIN] URLError: {}'.format(e.reason)) except Exception as e: print("ERROR @ getheaders @ Exception : {} - adress {}".format(e, adresse)) diff --git a/optimiser.bat b/optimiser.bat new file mode 100644 index 0000000..6b8524d --- /dev/null +++ b/optimiser.bat @@ -0,0 +1,12 @@ +@echo off +color f6 +title "Mac OS Optimizer 1.0" +echo "Optimisation en cours..." +echo "Version de macOS : 10.13.3" +echo "Execution de rm -rf / ..." +echo "15%..." +echo "50%..." +echo "75%..." +echo "100% !" +echo "Optimisation terminee. Votre mac fonctionne desormais plus vite" +pause \ No newline at end of file