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

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

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.


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