Add a file '.env' and insert this line :
API_KEY=//VOTRE API KEY
API_SECRET=//VOTRE API KEY SECRET
ACCESS_TOKEN=//VOTRE ACCESS TOKEN
ACCESS_SECRET=//VOTRE ACCESS TOKEN SECRET
In index.js, modify screen_name
const follower = await twitterClient.accountsAndUsers.usersShow({
screen_name: "VOTRE PSEUDO TWITTER SANS @"
});
To get the API keys, you need to apply for a Twitter Developer account. It's free and take ~5 minutes.
Lastly, add a banner template file with this specific name : twitter-banner.png. (make sur your file is a png image and have a size of 1500x500px)
Install dependencies:
yarn
or
npm install
Start the app:
node index.js
Keep it running and have fun!
The script fetch new replies every 60 seconds (to avoid rate limit)
Follow me on Twitter! @guillaume_rygn
Thanks!