Secrets support

i want to hide my discord bot code from everyone and i created a secret, but how do i use it? (nodejs) heres where it should be
immagine

Secret usage in NodeJS is process.env.[TOKEN_NAME]. Also see the replit docs on secrets here.

immagine
doesnt work

No. First of all, it shouldn’t be in []. I only put it there to signify a placeholder. Next, it can only work in the js file, not the ini file. Also, check the documentation for information.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.