mirror of
https://github.com/thewesker/delete-trump.git
synced 2025-12-20 04:21:16 -05:00
Change to use environment variables
This commit is contained in:
7
app.js
7
app.js
@@ -2,7 +2,12 @@ var config = require('./config.json');
|
||||
var Twitter = require('twitter');
|
||||
|
||||
function DeleteTrump(api) {
|
||||
this.client = new Twitter(api);
|
||||
this.client = new Twitter({
|
||||
consumer_key: process.env.TWITTER_CONSUMER_KEY,
|
||||
consumer_secret: process.env.TWITTER_CONSUMER_SECRET,
|
||||
access_token_key: process.env.TWITTER_ACCESS_TOKEN_KEY,
|
||||
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET,
|
||||
});
|
||||
}
|
||||
|
||||
DeleteTrump.prototype = {
|
||||
|
||||
Reference in New Issue
Block a user