Skip to content
Advertisement

How can I make a commmand that goes through a txt file and sends the text that i need?

Im trying to make an api key thingy in discord but i don’t know how to go through txt files one by one for ex

  1. test
  2. test2
  3. test3
  4. test4

If the first user sends !key it would send test if the 2nd user sends !key it would send test2.And so on.

this is what i’ve made so far:

JavaScript

But im getting errors such as these:

JavaScript

And the keys are in a form like this Ux9wMkTXDtmrgdJfLSHvzF74jsA3qp uWSj76hBF9taRQG4VEnyJfbkmsLMPe BJ5fPsV9N8kbRqdpTcx2geHwCGFUDr ect

Advertisement

Answer

I guess this … maybe

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement