carmon / twitter-date-bot

Twitter bot that tweets until a specific date arrives.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter Date Bot

Twitter bot that shares a tweet until a specific date comes.

How to use it

To run your app locally:

  • Put your twitter data in the twitter-lite client in index.js
  • Put your desired date in config/defaults.json
  • Put your desired tweet message on getTweetOptions function in index.js
  • Run npm i
  • Run npm start
  • That's it, don't need to keep it running

To repeatedly run your app:

  • Complete path to your app in cron/run_bot.sh
  • Copy your command inside your cron jobs (usually in /etc/cron./)
  • Make sure your bash command has the needed OS permissions to run

To run tests (cucumber-js):

  • Run npm run test

Real life example

I put up a twitter bot to show my love interest how does the npm and nodejs work. We setup a bot that every day tweeted until the infamous presidency of maurizio macri came to end in Argentina. (December 10th, 2019)

If you used and enjoyed

Give me a star, follow or PR ;)

About

Twitter bot that tweets until a specific date arrives.


Languages

Language:JavaScript 83.4%Language:Gherkin 14.2%Language:Shell 2.3%