From 88fb5444e97cac299864479e3796994e2c1e2438 Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 28 Apr 2020 14:53:22 +0200 Subject: [PATCH] peaufinement de la classification par ordre alphabetique du bot --- kabot/kabot/kabot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 3199bdd..84df76e 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -20,6 +20,7 @@ from bs4 import BeautifulSoup as bs here = os.path.dirname(os.path.abspath(__file__)) +#Fonction necesaire pour le bot. class Mybot(commands.Cog): def __init__(self, bot): self.bot = bot @@ -40,8 +41,9 @@ class Mybot(commands.Cog): self.sounds_history.reverse() if len(self.sounds_history) > 5: self.sounds_history = self.sounds_history[:5] + #Fin des fonction necesaire pour le bot. - #Les commandes interagir avec le bot. + #Les commandes pour interagir avec le bot. @commands.command() async def disconnect(self, ctx): await ctx.guild.voice_client.disconnect() @@ -117,6 +119,7 @@ class Mybot(commands.Cog): async def update(self, message): output = Popen('git pull'.split(), stdout=PIPE).communicate()[0] await message.channel.send(output.decode('utf-8')) + #Fin des commandes pour interagir avec le bot. #Les commandes pour faire mumuse avec le bot. @commands.command(help="randomsur l'avenir des gens.") @@ -333,6 +336,7 @@ class Mybot(commands.Cog): except: audio_file = random.choice([f for f in Path(here + '/Audio/').glob('**/*.mp3')]) self.sounds.append((audio_file, ctx)) + #Fin des commandes pour faire mumuse avec le bot. def get_word(word_type): """Chercher les mots pour la fonction kamoulox dans le fichier xml"""