Retweets the latest tweet using the "#MeetMaye" hashtag. It attempts to retweet every 30 minutes. You can always change the # to fit your needs.
Install packages while in the ./bot/ folder.
cd bot && npm install-
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".
Copy config_sample.ts to bot/config.ts, then go to the Keys and Access Tokens tab and fill in the credentials:
export default {
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.
Run directly with ts-node while in the ./bot folder directory:
npm startOr compile first and run the output:
npm run build
npm run serveExpect a success message in your console!