In this repo you'll find 3 files with 3 directions you might take this project.
before using this repository cd
into it in your terminal
then run npm install
to install the dependencies
then take a look at one of the strategies below:
-
madlibs – using arrays to build sentence structure
node server_mad_libs.js
-
multiline – using multilines and glyphs to make formal visual output
node server_multiline.js
-
rita – using rita.js to make synthesized text.
node server_rita.js
You'll likely want to make the interval loops here much much longer or use time of day to determine when to post. if you leave it at 10 seconds, you'll quickly meet the twitter anti-spam rate limit for posting tweets.
you'll need a set of twitter developer keys to post to twitter:
-
make a twitter account
-
go here: and register: https://developer.twitter.com/
-
under your username, create a new app, this will get you keys to post to twitter
-
find the keys and paste them into these examples.