I have a discord bot that uploads the daily Garfield comic every morning and I want to expand it to Twitter. To reduce clutter in the already extensive server.js file I have a new file twitter.js that I run through the console for now. However, twitter.js is unable to access keys and secrets using process.env, returning undefined.
Is there something I am missing when it comes to multiple files? Any help would be greatly appreciated.