From 36c0ee0d7fab149fa14516fbce5a7238c2ca5b7a Mon Sep 17 00:00:00 2001 From: Vijay Sundaram Date: Tue, 19 Jan 2016 12:27:15 -0800 Subject: [PATCH] Use package.json and npm to use Botkit in project * add package.json file with botkit dependency * update 'require' accordingly --- dotbot.js | 2 +- package.json | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 package.json diff --git a/dotbot.js b/dotbot.js index 43f6214..a329a53 100644 --- a/dotbot.js +++ b/dotbot.js @@ -1,5 +1,5 @@ /* Uses the slack button feature to offer a real time bot to multiple teams */ -var Botkit = require('../lib/Botkit.js'); +var Botkit = require('botkit'); if (!process.env.clientId || !process.env.clientSecret || !process.env.port) { console.log('Error: Specify clientId clientSecret and port in environment'); diff --git a/package.json b/package.json new file mode 100644 index 0000000..a37340d --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "dotbot", + "version": "0.0.1", + "description": "Slack bot scaffolding", + "main": "dotbot.js", + "scripts": { + "start": "node dotbot.js" + }, + "author": "Vijay Sundaram", + "license": "MIT", + "dependencies": { + "botkit": "^0.0.5" + }, + "engines": { + "node": "*" + } +}