twitter-to-discord icon indicating copy to clipboard operation
twitter-to-discord copied to clipboard

error: Missing the environment variable 'TWITTER_CONSUMER_KEY'

Open ShaneAbara opened this issue 5 years ago • 6 comments

error: Missing the environment variable 'TWITTER_CONSUMER_KEY'

I already filled up the .env file

ShaneAbara avatar Mar 28 '19 19:03 ShaneAbara

can you help me Step by step Im just new here

Ryan-dp avatar Oct 23 '19 06:10 Ryan-dp

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

iamkevino avatar Mar 13 '20 13:03 iamkevino

'gm' is not available on the command line

lu-jingxuan avatar Jun 06 '20 09:06 lu-jingxuan

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.

SugarD-x avatar Sep 04 '20 14:09 SugarD-x

Same problem above. All fix has been applied but error still exist

WebStoneRDX avatar Mar 18 '22 01:03 WebStoneRDX

Already figured it out. Just put this in the start of app.js

require('dotenv').config()

WebStoneRDX avatar Mar 18 '22 02:03 WebStoneRDX