rogersalvadeo256 / StoneOceanConfirmed

a little NodeJS project for posting on Twitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StoneOceanConfirmed

Codacy Badge

this is a project for an autonomous Twitter posting bot, this don't need to be pretty or have an actual site, this will work on Heroku, and this repository is just to save my code

I commented the code to don't have problems during the tests, 
again,to make it work you should put your twitter keys in the 
configuration file

To begin:

install dependencys
$ npm install
execute it, theres others ways to do it,
$ npm start
for this project i use
$ node bot.js

math operations

There isn't too much to explain about how the math in this project works, but i wanted to use this on the update

Basically the only things that are important is the operation where we pick the time

equation

then we pick the difference between the two days

equation

and finally we transform the dif into a number of days

equation

About the packages i used:

Twit

Twit is a package that simplify the interation with twitter API, using lines like post, get and stream you can tweet the way you want, Twit is made by ttezel

date-and-time

Date and time is a package that helps when we use time, before this, i was using the setInterval to tweet, but due some problems with heroku, i decided to use the date and time package. On this project, since i have to post on the right time, i use this, if you don't need to worry about it, just leave it

License

MIT

Free Software, Hell Yeah!

About

a little NodeJS project for posting on Twitter

License:MIT License


Languages

Language:JavaScript 100.0%