0.10.0 • Published 8 years ago

@ponko2/botkit-script-loader v0.10.0

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

botkit-script-loader

Greenkeeper badge npm version Build Status

Installation

npm install @ponko2/botkit-script-loader --save

Usage

var Path         = require('path');
var Botkit       = require('botkit');
var ScriptLoader = require('@ponko2/botkit-script-loader');

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

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

  var loader  = new ScriptLoader(controller, bot);
  var scripts = Path.resolve(__dirname, 'scripts');

  loader.load(scripts);
});
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.1

10 years ago