diff --git a/bot.py b/bot.py index 98d17c02f7c2206e0830ae7cc57f653697be37b3..29fbd4307358310017dc9b273be34785b030d704 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: