Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

spences10/delay-tweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deleay tweet

Greenkeeper badge

This is going to be a bot that uses the stream.on method and pops what comes out of the that into an array object:

obj {
  tweet: someTweet,
  timestamp: timestamp,
  delay: timestamp + delay
}

Uses twit and needs configuring with a .env file to reflect the config file:

module.exports = {
  twitterKeys: {
    consumer_key: process.env.CONSUMER_KEY,
    consumer_secret: process.env.CONSUMER_SECRET,
    access_token: process.env.ACCESS_TOKEN,
    access_token_secret: process.env.ACCESS_TOKEN_SECRET
  },
  twitterConfig: {
    queryString: process.env.QUERY_STRING,
    username: process.env.TWITTER_USERNAME,
    tweetTimeOutMin: process.env.TWEET_TIME_OUT_MIN,
    tweetTimeOutMax: process.env.TWEET_TIME_OUT_MAX,
    tweetQueueTime: process.env.TWEET_QUEUE_TIME,
    username: process.env.TWITTER_USERNAME,
  }
}

The .env will need to look as follows:

CONSUMER_KEY=...
CONSUMER_SECRET=...
ACCESS_TOKEN=...
ACCESS_TOKEN_SECRET=...
QUERY_STRING=...
TWITTER_USERNAME=...
TWEET_TIME_OUT_MIN=...
TWEET_TIME_OUT_MAX=...
TWEET_QUEUE_TIME=...
TWITTER_USERNAME=...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published