From 4feddbd726380864831dc0840ad47e3768ec6359 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com>
Date: Wed, 21 Aug 2019 14:00:56 +0200
Subject: [PATCH] little fix

---
 bot.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bot.py b/bot.py
index fbc0703..cc81ac4 100755
--- a/bot.py
+++ b/bot.py
@@ -131,12 +131,12 @@ class Bot(Client):
             else:
                 return random.choice(['T\'es sur de ton coup là ?', 'chais pas qui c\'est...'])
 
-        elif texte == '!userlist' and thread_type == Thread.GROUP:
+        elif texte == '!userlist' and thread_type == ThreadType.GROUP:
             return ", ".join([user.name for user in self.fetchAllUsersFromThreads([self.fetchThreadInfo(thread_id)[thread_id]])])
 
         # réinviter le dernier mec kické du group
         # TODO: test reinvite
-        elif texte == '!reinvite' and thread_type == Thread.GROUP:
+        elif texte == '!reinvite' and thread_type == ThreadType.GROUP:
             if 'thread_id' in Bot.kicked:
                 self.addUsersToGroup(Bot.kicked[thread_id][-1].uid, thread_id=thread_id)
         elif '!reinvite ' in texte:
-- 
GitLab