1 Commits

Author SHA1 Message Date
Diego Morales
bc9cd32a94 Make q.coffee better 2016-03-01 16:45:48 -05:00
11 changed files with 38 additions and 2101 deletions

View File

@@ -1 +1 @@
web: yarn run start-hubot-slack
web: bin/hubot -a hipchat

View File

@@ -189,4 +189,4 @@ you're having issues.
## Thanks
Special thanks to [Robohash](http://robohash.org) for the sweet logo :)
Special thanks to [Robohash](http://robohash.org) for the sweet logo :)

View File

@@ -55,6 +55,11 @@
"description": "Set to `debug` to enable detailed debug logging.",
"required": false
},
"HUBOT_HEROKU_KEEPALIVE_URL": {
"value": "https://YOUR_BOT_APP.herokuapp.com",
"description": "Set to use the subdomain of this bot to keep it awake",
"required": true
},
"BUILDPACK_URL": {
"value": "https://github.com/heroku/heroku-buildpack-nodejs",
"description": "Only change this if you are sure you need to.",

View File

@@ -1,5 +1,8 @@
#!/bin/sh
set -e
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
exec node_modules/.bin/hubot --name "triatomic" "$@"
exec node_modules/.bin/hubot --name "triatomic" "$@"

View File

@@ -1,6 +1,7 @@
[
"hubot-diagnostics",
"hubot-help",
"hubot-heroku-keepalive",
"hubot-google-images",
"hubot-google-translate",
"hubot-pugme",
@@ -16,6 +17,5 @@
"hubot-thesimpsons",
"hubot-voting",
"hubot-cron",
"hubot-browserstack",
"hubot-dogeme"
"hubot-browserstack"
]

View File

@@ -5,38 +5,36 @@
"author": "Bob Bergman <rbergman@atlassian.com>",
"description": "A simple helpful robot for your Company",
"dependencies": {
"cheerio": "~1.0.0-rc.2",
"chrono-node": "~1.3.5",
"cron": "^1.0.9",
"hubot": "^2.18.0",
"hubot-ambush": "0.0.3",
"hubot-browserstack": "~0.1.6",
"time": "^0.11.3",
"hubot": "^2.12.0",
"hubot-business-cat": "^1.1.19",
"hubot-cron": "~0.2.9",
"hubot-diagnostics": "0.0.2",
"hubot-dogeme": "^1.0.0",
"hubot-google-images": "^0.2.6",
"hubot-google-translate": "^0.2.1",
"hubot-help": "^0.2.2",
"hubot-diagnostics": "0.0.1",
"hubot-google-images": "^0.1.4",
"hubot-google-translate": "^0.1.0",
"hubot-help": "^0.1.1",
"hubot-heroku-keepalive": "0.0.4",
"hubot-hipchat": "^2.12.0-2",
"hubot-maps": "0.0.3",
"hubot-maps": "0.0.2",
"hubot-pugme": "^0.1.0",
"hubot-redis-brain": "0.0.4",
"hubot-redis-brain": "0.0.2",
"hubot-rules": "^0.1.0",
"hubot-scripts": "^2.5.16",
"hubot-shipit": "^0.2.0",
"hubot-slack": "^4.5.0",
"hubot-victory": "^1.3.0",
"hubot-youtube": "^0.1.2",
"hubot-ambush": "0.0.3",
"hubot-status": "0.0.2",
"hubot-thesimpsons": "~1.1.3",
"hubot-victory": "^1.3.0",
"hubot-voting": "~1.0.0",
"hubot-youtube": "^1.0.2",
"lodash": "~4.17.4",
"moment": "~2.20.1",
"time": "^0.12.0"
"hubot-cron": "~0.2.9",
"hubot-browserstack": "~0.1.6",
"chrono-node": "~1.0.6",
"lodash": "~3.9.3",
"moment": "~2.10.3",
"cheerio": "~0.19.0"
},
"scripts": {
"start-hubot-hipchat": "hubot --name \"GalBot\" --adapter hipchat",
"start-hubot-slack": "hubot --adapter slack"
"engines": {
"node": "0.10.x"
}
}

View File

@@ -30,7 +30,7 @@ module.exports = (robot) ->
# lulz = ['lol', 'rofl', 'lmao']
#
robot.hear /(jerbs|jerb)/i, (res) ->
res.send "http://i2.kym-cdn.com/photos/images/original/000/262/320/021.gif"
res.send "http://www.edugeek.net/attachments/forums/general-chat/32142d1442315624-will-robot-take-your-job-bbc-news-humans_jerbs.jpg"
robot.respond /dance/i, (res) ->
res.send "http://tparnell.blob.core.windows.net/hubot/imageedit_6_9390856511.gif"
@@ -58,11 +58,6 @@ module.exports = (robot) ->
robot.respond /no/i, (res) ->
res.send "http://tparnell.blob.core.windows.net/hubot/vxkeb.gif"
robot.respond /deployment/i, (res) ->
res.sent "https://vbujenkins.vistaprint.net/view/Gallery/view/Gallery5%20prod%20deployment/"
#
# robot.topic (res) ->
# res.send "#{res.message.text}? That's a Paddlin'"

View File

@@ -1,3 +0,0 @@
module.exports = (robot) ->
robot.router.get '/livecheck', (req, res) ->
res.send 'ok'

View File

@@ -77,6 +77,10 @@ module.exports = (robot) ->
rotation = robot.brain.get('rotation')
current = robot.brain.get('currentRotation')
request = res.match[1].trim()
if request == '@dmorales'
request = '@ToastKing'
index = rotation.indexOf(request);
# res.send "index #{index}"
if index > -1

View File

@@ -1,6 +0,0 @@
module.exports = (robot) ->
robot.router.get '/wholehog', (req, res) ->
robot.messageRoom "226_gallery_testing@conf.hipchat.com", "https://tparnell.blob.core.windows.net/hubot/hqdefault.jpg"
res.send 'OK'
robot.respond /whole hog/i, (res) ->
res.send "https://tparnell.blob.core.windows.net/hubot/hqdefault.jpg"

2059
yarn.lock

File diff suppressed because it is too large Load Diff