-
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
17 changed files
with
183 additions
and
552 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,2 @@ | |||
undefined | node_modules | ||
hubot |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
require('coffee-script'); | |||
require('./bot') |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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() | |||
|
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
["redis-brain.coffee", "tweet.coffee", "shipit.coffee"] | ["github-issue-link.coffee", "good-night.coffee", "lmgtfy.coffee", "travis.coffee", "uptime.coffee", "url.coffee"] |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,28 +1,26 @@ | |||
{ | { | ||
"name": "hosted-hubot", | "name": "nettefw-irc-bot", | ||
"version": "2.3.2", | "version": "1.0.0", | ||
"author": "GitHub Inc.", | "author": "Patrik Votoček", | ||
"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" | |||
}], | |||
|
|
||
"repository" : { | "repository" : { | ||
"type": "git", | "type": "git", | ||
"url": "https://github.com/github/hubot.git" | "url": "git@bitbucket.org:vrtakcz/vindaloo.git" | ||
}, | }, | ||
|
|
||
"dependencies": { | "dependencies": { | ||
"hubot": "2.3.2", | "hubot": "2.3.2", | ||
"hubot-irc": ">= 0.1.0", | |||
"hubot-scripts": ">= 2.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": { | "engines": { | ||
"node": "0.6.x", | "node": ">=0.6.x", | ||
"npm": "1.0.x" | "npm": ">=1.0.x" | ||
} | } | ||
} | } | ||
|
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.