From 6b46409880fbd4f8dd2a9601c30f23738fda30cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com> Date: Mon, 19 Aug 2019 17:26:18 +0200 Subject: [PATCH] quizz test --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 98d17c0..29fbd43 100755 --- a/bot.py +++ b/bot.py @@ -123,7 +123,9 @@ class Bot(Client): if 'question' in texte: return quizz.get_question() if '!q ' in texte: - return quizz.answer(texte.replace('!q ', ''), self.fetchUserInfo(author_id)[author_id].name) + personne = self.fetchUserInfo(author_id)[0].name + print(personne) + return quizz.answer(texte.replace('!q ', ''), personne) # meteo if '!meteo' in texte: -- GitLab