#to access token from data.json

9 messages · Page 1 of 1 (latest)

cedar oyster

i want to access token from data.json which is stored like this

{
"userID":"token",
}```

token is stored for every user

when author will use the cmd bot will work according to token which was set for author
atomic grail

Then const data = require('data.json'); and you can access the token of a user by doing data[userID]

cedar oyster

i run the project in my vs code

now how i terminate???

atomic grail

By clicking the 🟥 button at the top of vscode to stop the process you ran

cedar oyster

there is not buttons

i run the project in terminal

reply pls

atomic grail

You know what, no. I don’t like impatient entitles users. Search yourself