Readfile able to read random lines?


#1

So, I wanted to make a random joke generator with the command !dadjoke and have the (readfile textfile.txt) command read different lines from the file. Currently it only reads the first line.

Is this possible? If so, please help.


#2

I was sure I added this to the command variable documentation, guess not!

The command variable for this is (readfilerand )

Just added it here: Command Variables


#3

It’s possible you did and I am stupid or when I search, anytime I go to a page I think had the answer, it said it was missing or private -_-

Thank you!


#4

Can I know what page you went to that gave the missing error?


#5

Sorry, been MIA a bit.

It;s any google search when I click the google link to the forums it says it is private or removed


#6

You have to replace “community” with “archive” in those links and you will be fine. The pages are linking to the old forums.


#7

This topic was automatically closed after 30 days. New replies are no longer allowed.