Skip to content

Commit

Permalink
Use package.json and npm to use Botkit in project
Browse files Browse the repository at this point in the history
* add package.json file with botkit dependency
* update 'require' accordingly
  • Loading branch information
vijaysundaram committed Jan 19, 2016
1 parent c75ab18 commit 36c0ee0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dotbot.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": "*"
}
}

0 comments on commit 36c0ee0

Please sign in to comment.