diff --git a/Garou.py b/Garou.py index 5155ab3..d950315 100644 --- a/Garou.py +++ b/Garou.py @@ -5,10 +5,10 @@ game = 0 djoueurs = 0 joueurs = str("0") -def is_joueurs(author): +def is_joueurs(sender): global joueurs for i in range(len(joueurs)): - if author == joueurs[i]: + if ctx == joueurs[i]: return True else: @@ -57,7 +57,8 @@ class Garou: #Commande de test @commands.command(pass_content=True) async def gtest(self, ctx): - if is_joueurs(ctx.message.author) == True: + sender = ctx.message.author + if is_joueurs(sender) == True: await self.bot.say("Vous ete bien un joueurs !") elif gm == ctx.message.author: diff --git a/__pycache__/Garou.cpython-36.pyc b/__pycache__/Garou.cpython-36.pyc index 3485c4c..f088c94 100644 Binary files a/__pycache__/Garou.cpython-36.pyc and b/__pycache__/Garou.cpython-36.pyc differ diff --git a/log_test.txt b/log_test.txt index 3e496e5..72c8991 100644 --- a/log_test.txt +++ b/log_test.txt @@ -30,6 +30,11 @@ D +Début de l'enregistrement des réactions. + + + + Début de l'enregistrement des réactions.