Twitter bot that tweets the following whenever it's triggered -
- Top 3 farms by TVL on YieldBay List.
- Top 3 farms by safety score on YieldBay List.
- Top 3 farms by yield on YieldBay List.
- Setup a Twitter Developers account.
- Generate the necessary credentials from your Twitter Developers dashboard.
- Create a .env file and populate it with the Twitter credentials.
APP_KEY=<your_twitter_app_key>
APP_SECRET=<your_twitter_app_secret>
ACCESS_TOKEN=<your_twitter_access_token>
ACCESS_SECRET=<your_twitter_access_secret>
- Install the dependencies.
yarn
- Run the script
node index.js
We at YieldBay run it as a cron job at a specific time everyday. You can configure it as a cron job to run as often as you want. This could also be morphed into an on-demand Telegram Bot to poll the data.