Retweets the latest tweet using the "#MeetMaye" hashtag. It attempts to retweet once per hour. You can always change the # to fit your needs.
Install twit while in the ./bot/ folder. The library that lets us talk to Twitter.
npm i twit
Create a Twitter App on Twitter Developers : https://apps.twitter.com/app/new . Next you'll see a screen with a "Details" tab. Setup the App and "Application Type", choose "Read and Write".
Then go to the Keys and Access Tokens tab, you will need this data to setup our config.js as shown below.
module.exports = {
consumer_key: 'API key',
consumer_secret: 'API secret key',
access_token: 'Access token',
access_token_secret: 'Access token secret'
}
In between those quotes, instead of 'key'
, paste the appropriate info from the Details page.
Now type the following in the command line while in the ./bot folder directory
node retweetbot.js
Expect as success message in your console!