generated from Nemesis/Exemple
bug liste
This commit is contained in:
parent
5f1d88f741
commit
97cb0c3b4d
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ def liste(room, event):
|
|||
if (nb <= len(list)):
|
||||
for i in range(nb):
|
||||
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))
|
||||
else:
|
||||
room.send_text("Utilisation : !liste <options/de/la/liste> [nombre d elements]")
|
||||
|
|
Loading…
Reference in a new issue