generated from Nemesis/Exemple
derniers ajustement sur les listes
This commit is contained in:
parent
f9b559ca9c
commit
dd95c35603
1 changed files with 4 additions and 4 deletions
|
@ -591,12 +591,12 @@ def liste(room, event):
|
|||
args = event['content']['body'].split()
|
||||
args.pop(0)
|
||||
try:
|
||||
nb = int(args[len(args)])
|
||||
args.pop(len(args))
|
||||
nb = int(args[len(args)-1])
|
||||
args.pop(len(args)-1)
|
||||
except:
|
||||
nb = 1
|
||||
args = ' '.join(args)
|
||||
list = args[0].split('/')
|
||||
list = args.split('/')
|
||||
if (nb <= len(list)):
|
||||
for i in range(nb):
|
||||
id = random.randrange(0,len(list))
|
||||
|
|
Loading…
Reference in a new issue