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.
Fork or simply clone the repo to your computer (home server), then run
npm install
- Create a project at https://console.firebase.google.com/
- Follow this amazing youtube tutorial from @rob_dodson
firebase deploy
once you're done with the tutorial.- Find instructions on how to configure twitter functionality here.
- See how to make NodeJS be able to work with Firebase database.
- See testPhrases.json for tweets you can populate your database with or set the search text inside watcher.js
- Rename and fill configuration files, that end with *0.json with your data, provided by respectful services.
node watcher.js
to fill your database.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