forked from andrewpuch/hubot_slack_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
# Hubot Slack Example | ||
Writing a bot using hubot in javascript that runs server side that integrates with your AWS infrastructure. | ||
|
||
``` | ||
sudo su | ||
mkdir -p /root/chatbot && cd /root/chatbot | ||
apt-get update | ||
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | ||
apt-get install nodejs -y | ||
npm install -g yo generator-hubot | ||
mkdir -p /root/.config/configstore/ | ||
chmod g+rwx /root /root/.config /root/.config/configstore | ||
cd /opt | ||
git clone spotbot | ||
cp /opt/spothook/ops/spotbot/config/insight-yo.json /root/.config/configstore/ | ||
cp /opt/spothook/ops/spotbot/config/update-notifier-yo.json /root/.config/configstore/ | ||
cd /opt/spothook/ops/spotbot | ||
chmod g+rwx /root /root/.config /root/.config/configstore /root/chatbot | ||
yo hubot | ||
rm -rf node_modules/ | ||
rm package.json | ||
**Copy package json from github** | ||
npm install && npm update | ||
**Copy scripts folder from github** | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "chatbot", | ||
"version": "0.0.0", | ||
"private": true, | ||
"author": "[email protected]", | ||
"description": "Communication bot.", | ||
"dependencies": { | ||
"aws-sdk": "^2.3.7", | ||
"bluebird": "^3.3.5", | ||
"hubot": "^2.17.0", | ||
"hubot-help": "^0.1.2", | ||
"hubot-heroku-keepalive": "^1.0.0", | ||
"hubot-redis-brain": "0.0.3", | ||
"hubot-slack": "^3.4.2" | ||
}, | ||
"engines": { | ||
"node": "0.10.x" | ||
} | ||
} |