QuoteBot uses Twitter API to post random tweets based on your quotes file. It reads one line at a time and posts it to your account. Response.js is responsible for tracking users who post certain hashtags and sends them messages to follow you back. You can set the timer for your needs.
-
You have to create a
.envfile first with the following settings to store your credentials.TWITTER_CONSUMER_KEY=key TWITTER_CONSUMER_SECRET=secret TWITTER_ACCESS_TOKEN_KEY=token TWITTER_ACCESS_TOKEN_SECRET=token_secret
-
npm install -
npm run build -
npm startsets your bot on motion.
npm start
Tasks are based on Node Scheduler. You should refer to their API for timing your tasks.