Skip to content

Twitter bot that sends a tweet everytime that your internet goes down.

Notifications You must be signed in to change notification settings

tyrellrummage/internet-downtime-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

internet-downtime-twitter-bot

Twitter bot that sends a tweet everytime that your internet goes down.

Configuration:

  • ispName: your isp name, just to name bash
  • twitterConsumerKey: your twitter consumer key, from https://apps.twitter.com/ - this can be set as an environment variable
  • twitterConsumerSecret: your twitter consumer secret, from https://apps.twitter.com/ - this can be set as an environment variable
  • twitterAccessToken: your twitter access token, from https://apps.twitter.com/ - this can be set as an environment variable
  • twitterAccessTokenSecret: your twitter access token secret, from https://apps.twitter.com/ - this can be set as an environment variable
  • debug (default = true): logs info and tweets into the console (for actually tweeting, set false)
  • checkInterval (depends on debug): time in seconds for the loop that checks connection interval
  • checkTimeout (depends on debug): time in seconds to wait before returning that internet's down
  • fileEncoding (default UTF8): for reading/writing data to files

Of course you can tweak anything. Have fun! Also, feel free to contact me on reddit if you have any doubts (/u/tyrellrummage).

To run it, go the the same directory (folder) where you have it and run node app.js on your console.

About

Twitter bot that sends a tweet everytime that your internet goes down.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published