0.10.0 • Published 8 years ago

@ponko2/botkit-heroku-keepalive v0.10.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

botkit-heroku-keepalive

Greenkeeper badge npm version Build Status

Installation

npm install @ponko2/botkit-heroku-keepalive --save

Configuring

$ heroku config:set BOTKIT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s | grep web-url | cut -d= -f2)
$ heroku config:set BOTKIT_HEROKU_KEEPALIVE_INTERVAL=5
$ heroku config:set BOTKIT_HEROKU_WAKEUP_TIME=6:00
$ heroku config:set BOTKIT_HEROKU_SLEEP_TIME=22:00
$ heroku config:set TZ='Asia/Tokyo'
$ heroku addons:create scheduler:standard
$ heroku addons:open scheduler
$ curl ${BOTKIT_HEROKU_KEEPALIVE_URL}heroku/keepalive

Usage

var Botkit          = require('botkit');
var HerokuKeepalive = require('@ponko2/botkit-heroku-keepalive');

var controller = Botkit.slackbot({
  debug: false
});

var herokuKeepalive;

controller.setupWebserver(process.env.PORT || 8080, function (err, webserver) {
  herokuKeepalive = new HerokuKeepalive(controller);
});

controller.spawn({
  token: process.env.BOTKIT_SLACK_TOKEN
}).startRTM(function (err) {
  if (err) {
    throw new Error(err);
  }

  herokuKeepalive.start();
});
0.10.0

8 years ago

0.9.0

9 years ago

0.8.0

9 years ago

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago