twitter-to-discord
twitter-to-discord copied to clipboard
error: Missing the environment variable 'TWITTER_CONSUMER_KEY'
error: Missing the environment variable 'TWITTER_CONSUMER_KEY'
I already filled up the .env file
can you help me Step by step Im just new here
error: Missing the environment variable 'TWITTER_CONSUMER_KEY'
I already filled up the .env file
You need to load the .env file, so add this to the app.js file:
require('dotenv').config({ path: './.env' });
And of course, install dotenv -> npm i dotenv
'gm' is not available on the command line
CardWasDeclined: Run npm install gm
within the bot's root directory.
Ryan-dp: Please open your own bug report.
ShaneAbara: Did you rename .env-sample
to .env
? If not, you need to do this. Also make sure your text editor is not saving it as .env.txt
by mistake.
iamKTD: It should already be coded into the bot that way. As long as you rename the .env
file appropriately, you shouldn't need to add that line.
Same problem above. All fix has been applied but error still exist
Already figured it out. Just put this in the start of app.js
require('dotenv').config()