generated from Nemesis/Exemple
tableau des scores
This commit is contained in:
parent
f75e228069
commit
ad24bd80a2
1 changed files with 4 additions and 1 deletions
|
@ -1169,12 +1169,15 @@ def actif(room,event): # Stats d'activité d'une personne
|
|||
if (len(args) > 0 and args[0] == "list"):
|
||||
salon = verifPMRoom(room,event)
|
||||
room_act = []
|
||||
dupli_check = []
|
||||
for cle,valeur in stats.items():
|
||||
if (cle[0] == room.room_id):
|
||||
room_act.append(valeur)
|
||||
room_act.sort(key=lambda us: us.mess, reverse=True)
|
||||
reponse="Voici le tableau des plus gros posteurs!\n"
|
||||
for us in room_act:
|
||||
if us.nick not in dupli_check:
|
||||
dupli_check.append(us.nick)
|
||||
reponse = reponse + us.nick + " : " + str(us.mess) + "\n"
|
||||
msg(salon,reponse)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue