|
@ -600,7 +600,7 @@ def liste(room, event): |
|
|
if (nb <= len(list)): |
|
|
if (nb <= len(list)): |
|
|
for i in range(nb): |
|
|
for i in range(nb): |
|
|
id = random.randrange(0,len(list)) |
|
|
id = random.randrange(0,len(list)) |
|
|
res.append(list.pop(list.index(id))) |
|
|
res.append(list.pop(list[id])) |
|
|
room.send_text(nick + "obtient :\n" + '\n'.join(res)) |
|
|
room.send_text(nick + "obtient :\n" + '\n'.join(res)) |
|
|
else: |
|
|
else: |
|
|
room.send_text("Utilisation : !liste <options/de/la/liste> [nombre d elements]") |
|
|
room.send_text("Utilisation : !liste <options/de/la/liste> [nombre d elements]") |
|
|