项目作者: tudddorrr

项目描述 :
Sleepy Studios routing system + Twitter bot
高级语言: JavaScript
项目地址: git://github.com/tudddorrr/Waker.git
创建时间: 2017-07-11T19:04:06Z
项目社区:https://github.com/tudddorrr/Waker

开源协议:

下载


Waker

The general workflow of Waker is:

  • Call server endpoint to return the host and port(s) of a server
  • After returning the server info, check to see if it’s up
  • If it isn’t, post a status on the Twitter bot (limited to every half hour)

Libraries

Make it your own

Clone the project and npm install

Make a Twitter app at: https://apps.twitter.com

In your root folder, create a ‘.env’ file (or copy and rename the .env.template file) and fill in these properties:

  1. T_CONSUMER_KEY=yourtwitterconsumerkey
  2. T_CONSUMER_SECRET=yourtwitterconsumersecret
  3. T_ACCESS_TOKEN=yourtwitteraccesstoken
  4. T_ACCESS_TOKEN_SECRET=yourtwitteraccesstokensecret
  5. MAX_GIFS=8
  6. STATUS_INTERVAL=30
  7. PORT=8000