Any workaround to using secrets in a json file?
The bot I'm using requires the token to be in a json file, but I want to use a secret for it. Is there any workaround?
Voters
The bot I'm using requires the token to be in a json file, but I want to use a secret for it. Is there any workaround?
Go to this line right here

And replace the login parameter with
process.env.token
.@SixBeeps

@QuackMeansQuack Swap lines 6 and 7 so that Discord is defined first.
@SixBeeps It now works perfectly, thanks alot. One of my bots was logged into and nuked my server, so this is a great help.
@QuackMeansQuack Ohhh yeah definitely don't want that happening. Glad I could help again. Mind marking my comment as the answer?
@SixBeeps How do I do that?
@QuackMeansQuack Looks like you've figured it out 👍