Read from a CSV file

Asked Dec 6, 2020·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

What I want:
A command to go to an file (google doc, drop box, whatever) and read a random element and then report it back to the channel. I'd like the file to just be a CSV (Comma Separated Value) if I can.

Goal: I want my bot to generate random "dates" for a game of "Would you Rather" and it seems easiest to do this through a file of date features rather than hard coding a list of 100 features into a single command.

1 reply

Hey @Tufted Cat!

Use Pastebin for that. What you want to do is simple, so a quick look in the forum should be enough to understand how to set it up yourself, there are hundreds of examples.