I’m building a bot with Discordia and I need a way to retrieve my token from the .env file. Is it possible to require it from a .lua file? Thanks in advance!
You can use the os.getenv
function, for example:
os.getenv("SECRET_TOKEN")
I’m not really a lua programmer but I do know about that function
1 Like
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.