Skip to content

Commit

Permalink
init vindaloo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrtak-CZ committed Sep 13, 2012
1 parent 2cdc26e commit eeb4407
Show file tree
Hide file tree
Showing 17 changed files with 183 additions and 552 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
undefined
node_modules
hubot
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

164 changes: 0 additions & 164 deletions README.md

This file was deleted.

2 changes: 2 additions & 0 deletions app.js
@@ -0,0 +1,2 @@
require('coffee-script');
require('./bot')
7 changes: 0 additions & 7 deletions bin/hubot

This file was deleted.

37 changes: 37 additions & 0 deletions bot.coffee
@@ -0,0 +1,37 @@
Hubot = require 'hubot'
Fs = require 'fs'
Path = require 'path'
HTTP = require 'http'

Options =
adapter: "irc"
alias: false
enableHttpd: true
name: "Hubot"
path: "."

adapterPath = Path.resolve __dirname, "node_modules/hubot", "src", "adapters"

robot = Hubot.loadBot adapterPath, Options.adapter, Options.enableHttpd, Options.name

robot.alias = Options.alias

loadScripts = ->
scriptsPath = Path.resolve ".", "scripts"
robot.load scriptsPath

scriptsPath = Path.resolve "src", "scripts"
robot.load scriptsPath

scriptsFile = Path.resolve "hubot-scripts.json"
Path.exists scriptsFile, (exists) =>
if exists
Fs.readFile scriptsFile, (err, data) ->
scripts = JSON.parse data
scriptsPath = Path.resolve "node_modules", "hubot-scripts", "src", "scripts"
robot.loadHubotScripts scriptsPath, scripts

robot.adapter.on 'connected', loadScripts

robot.run()

2 changes: 1 addition & 1 deletion hubot-scripts.json
@@ -1 +1 @@
["redis-brain.coffee", "tweet.coffee", "shipit.coffee"]
["github-issue-link.coffee", "good-night.coffee", "lmgtfy.coffee", "travis.coffee", "uptime.coffee", "url.coffee"]
24 changes: 11 additions & 13 deletions package.json
@@ -1,28 +1,26 @@
{
"name": "hosted-hubot",
"version": "2.3.2",
"author": "GitHub Inc.",
"keywords": "github hubot campfire bot",
"description": "A simple helpful Robot for your Company",
"licenses": [{
"type": "MIT",
"url": "http://github.com/github/hubot/raw/master/LICENSE"
}],
"name": "nettefw-irc-bot",
"version": "1.0.0",
"author": "Patrik Votoček",

"repository" : {
"type": "git",
"url": "https://github.com/github/hubot.git"
"url": "git@bitbucket.org:vrtakcz/vindaloo.git"
},

"dependencies": {
"hubot": "2.3.2",
"hubot-irc": ">= 0.1.0",
"hubot-scripts": ">= 2.1.0",
"optparse": "1.0.3"
"optparse": ">= 1.0.3",
"githubot": ">= 0.2.0",
"coffee-script": ">= 1.3.3",
"mongoose": ">= 3.0.0"
},

"engines": {
"node": "0.6.x",
"npm": "1.0.x"
"node": ">=0.6.x",
"npm": ">=1.0.x"
}
}

42 changes: 0 additions & 42 deletions scripts/google-images.coffee

This file was deleted.

0 comments on commit eeb4407

Please sign in to comment.