/perfect-time-to-ukr

A twitter bot that tweets a random "What a perfect time to.." whenever the current time matches AB:BA pattern. New suggestion phrases can be added by using #perfect_time_ukr hashtag. WIP at the moment.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Perfect time to..

NodeJS + Firebase Twitter bot

A nodejs twitter bot that tweets a random "What a perfect time to.." whenever the current time matches AB:BA pattern. New suggestion phrases can be added by using #perfect_time_ukr hashtag. WIP at the moment.

@perfect_time_to

Fork or simply clone the repo to your computer (home server), then run npm install

  1. Create a project at https://console.firebase.google.com/
  2. Follow this amazing youtube tutorial from @rob_dodson
  3. firebase deploy once you're done with the tutorial.
  4. Find instructions on how to configure twitter functionality here.
  5. See how to make NodeJS be able to work with Firebase database.
  6. See testPhrases.json for tweets you can populate your database with or set the search text inside watcher.js
  7. Rename and fill configuration files, that end with *0.json with your data, provided by respectful services.
  8. node watcher.js to fill your database.
  9. node index.js to start tweeting:)

I'm far from a good coder, therefore any constructive feedback is much and trully appreciated. Feel free to hit me up at @NerveClasp and check out my working twitter (in Ukrainian) here: https://twitter.com/perfect_time_to