Page 1 of 1

rand only returns one line (username)

Posted: Sun Sep 25, 2022 6:48 pm
by Aulig
Hi,

I have a list of usernames. I want the bot to randomly pick 5 of these and perform further actions for them.

I got it to the point where I can perform the actions for all the usernames in the file or, if I add the ",rand" to the file path, perform the action for one of the usernames in the file.

Is there a way I can achieve my above mentioned goal (randomly pick 5 usernames from the file and perform actions on them)?

Here's my config: https://imgur.com/a/FSeadt6

Re: rand only returns one line (username)

Posted: Mon Sep 26, 2022 4:37 pm
by martin@rootjazz
in CUSTOM SEARCH, specify the ID / URL option to be able to read a file.
Then for search input, use the filepath of the file (file should be one username per line)


Then double click the selected step (once in the right side) and specify you only want 5 results for that step

Image

Re: rand only returns one line (username)

Posted: Sat Oct 01, 2022 6:36 pm
by Aulig
Neat, seems to work now, thanks!

Re: rand only returns one line (username)

Posted: Tue Oct 04, 2022 10:58 pm
by martin@rootjazz
Aulig wrote: Sat Oct 01, 2022 6:36 pm Neat, seems to work now, thanks!
:-)