FS Package + Discord.JS

Help!

I’m trying to make it so when you type ;spotify in a discord server, the bot does the following…

  • Finds the file "spotify.txt"
  • Copies one line
  • Sends that one line onto the chat
  • In the .txt file, it removes that line

Inside the txt file, it just has 50 lines of nice songs.

I want this so users don’t get the same suggestions. If I did then I’d just use math.random, but I’m not. Help is appreciated!