Skip to content
Extraits de code Groupes Projets
Valider 4feddbd7 rédigé par Loïc Wikle DUBARD's avatar Loïc Wikle DUBARD
Parcourir les fichiers

little fix

parent 0d56b79e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment