0

This is not for a browser.

I intend to make a "blacklist" array for my bot, which will prevent users from running commands. However, I can only seem to do this on the actual bot file as I haven't found a way to do an external method.

What I'd want to do is have my main bot file as normal, but have a blacklist.txt with an array including their username, discord account ID and extra notes which can be accessed at any time by admins using a command.

This is what I'm using:

var blacklist=[
    {username:'',userid:'',notes:''},
]
1

1 Answer 1

0

It's possible with node.js(a platform based on javascript) Here is an example how to do that Using Node.JS, how do I read a JSON file into (server) memory?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.