rand only returns one line (username)

Support / help / discussion forum for twitter bot
Post Reply
Aulig
Posts: 2
Joined: Sun Sep 25, 2022 3:22 pm

rand only returns one line (username)

Post 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
User avatar
martin@rootjazz
Site Admin
Posts: 30955
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: rand only returns one line (username)

Post 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
Aulig
Posts: 2
Joined: Sun Sep 25, 2022 3:22 pm

Re: rand only returns one line (username)

Post by Aulig »

Neat, seems to work now, thanks!
User avatar
martin@rootjazz
Site Admin
Posts: 30955
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: rand only returns one line (username)

Post by martin@rootjazz »

Aulig wrote: Sat Oct 01, 2022 6:36 pm Neat, seems to work now, thanks!
:-)
Post Reply