Skip to content

Commit

Permalink
Consistent whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Bell committed Nov 20, 2011
1 parent ce8bb29 commit 1455b62
Show file tree
Hide file tree
Showing 21 changed files with 71 additions and 58 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ v1.0.3
* Ensure people are running node 0.4.x - Corey Donohoe <atmos@atmos.org>
* Doc fixups - Aitor García Rey <aitor@linkingpaths.com>
* Twilio adapter support - Tom Bell <tomb@tombell.org.uk>

1 change: 1 addition & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ remove-js:
deps:

.PHONY: all

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ It's easy to test scripts locally with an interactive shell:
... and to run tests:

% make test

1 change: 0 additions & 1 deletion bin/hubot
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ else

robot.run()

# vim:ft=coffee ts=2 sw=2 et :
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@

"engine": "node > 0.6.0 < 0.7.0"
}

1 change: 1 addition & 0 deletions src/adapters/campfire.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,4 @@ class CampfireStreaming extends EventEmitter
request.on "error", (err) ->
console.log err
console.log err.stack

1 change: 1 addition & 0 deletions src/brain.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ class Brain extends EventEmitter
@emit 'loaded', @data

module.exports = Brain

This comment has been minimized.

Copy link
@ricksentam

ricksentam Mar 23, 2024

it is killing my brain, so now whatr we use ?

This comment has been minimized.

Copy link
@joeyguerra

joeyguerra Mar 23, 2024

Member

can you use the latest version of Hubot?


1 change: 1 addition & 0 deletions src/creator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ class Creator
@copy "#{@templateDir}/#{file}", "#{@path}/#{file}" for file in files

exports.Creator = Creator

4 changes: 1 addition & 3 deletions src/robot.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,6 @@ class Robot.Adapter
http: (url) ->
@httpClient.create(url)




class Robot.Message
# Represents an incoming message from the chat.
#
Expand Down Expand Up @@ -446,3 +443,4 @@ Robot.Response::httpClient = HttpClient
Robot::httpClient = HttpClient

module.exports = Robot

1 change: 1 addition & 0 deletions src/scripts/math.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ module.exports = (robot) ->
# Response includes non-string keys, so we can't use JSON.parse here.
json = eval("(#{body})")
msg.send json.rhs || 'Could not compute.'

1 change: 1 addition & 0 deletions src/scripts/ping.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ module.exports = (robot) ->
robot.respond /DIE$/i, (msg) ->
msg.send "Goodbye, cruel world."
process.exit 0

1 change: 0 additions & 1 deletion src/scripts/pugme.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ module.exports = (robot) ->
.get() (err, res, body) ->
msg.send "There are #{JSON.parse(body).pug_count} pugs."


1 change: 1 addition & 0 deletions src/scripts/roles.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ module.exports = (robot) ->
msg.send getAmbiguousUserText users
else
msg.send "I don't know anything about #{name}."

1 change: 1 addition & 0 deletions src/scripts/storage.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ module.exports = (robot) ->
response += "\n"

msg.send response

106 changes: 53 additions & 53 deletions src/scripts/translate.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,59 @@
#

languages =
"af":"Afrikaans",
"sq":"Albanian",
"ar":"Arabic",
"be":"Belarusian",
"bg":"Bulgarian",
"ca":"Catalan",
"zh-CN":"Simplified Chinese",
"zh-TW":"Traditional Chinese",
"hr":"Croatian",
"cs":"Czech",
"da":"Danish",
"nl":"Dutch",
"en":"English",
"et":"Estonian",
"tl":"Filipino",
"fi":"Finnish",
"fr":"French",
"gl":"Galician",
"de":"German",
"el":"Greek",
"iw":"Hebrew",
"hi":"Hindi",
"hu":"Hungarian",
"is":"Icelandic",
"id":"Indonesian",
"ga":"Irish",
"it":"Italian",
"ja":"Japanese",
"ko":"Korean",
"lv":"Latvian",
"lt":"Lithuanian",
"mk":"Macedonian",
"ms":"Malay",
"mt":"Maltese",
"no":"Norwegian",
"fa":"Persian",
"pl":"Polish",
"pt":"Portuguese",
"ro":"Romanian",
"ru":"Russian",
"sr":"Serbian",
"sk":"Slovak",
"sl":"Slovenian",
"es":"Spanish",
"sw":"Swahili",
"sv":"Swedish",
"th":"Thai",
"tr":"Turkish",
"uk":"Ukranian",
"vi":"Vietnamese",
"cy":"Welsh",
"yi":"Yiddish"
"af": "Afrikaans",
"sq": "Albanian",
"ar": "Arabic",
"be": "Belarusian",
"bg": "Bulgarian",
"ca": "Catalan",
"zh-CN": "Simplified Chinese",
"zh-TW": "Traditional Chinese",
"hr": "Croatian",
"cs": "Czech",
"da": "Danish",
"nl": "Dutch",
"en": "English",
"et": "Estonian",
"tl": "Filipino",
"fi": "Finnish",
"fr": "French",
"gl": "Galician",
"de": "German",
"el": "Greek",
"iw": "Hebrew",
"hi": "Hindi",
"hu": "Hungarian",
"is": "Icelandic",
"id": "Indonesian",
"ga": "Irish",
"it": "Italian",
"ja": "Japanese",
"ko": "Korean",
"lv": "Latvian",
"lt": "Lithuanian",
"mk": "Macedonian",
"ms": "Malay",
"mt": "Maltese",
"no": "Norwegian",
"fa": "Persian",
"pl": "Polish",
"pt": "Portuguese",
"ro": "Romanian",
"ru": "Russian",
"sr": "Serbian",
"sk": "Slovak",
"sl": "Slovenian",
"es": "Spanish",
"sw": "Swahili",
"sv": "Swedish",
"th": "Thai",
"tr": "Turkish",
"uk": "Ukranian",
"vi": "Vietnamese",
"cy": "Welsh",
"yi": "Yiddish"

getCode = (language,languages) ->
for code, lang of languages
return code if lang.toLowerCase() is language.toLowerCase()
Expand Down
1 change: 1 addition & 0 deletions src/scripts/youtube.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ module.exports = (robot) ->
video.link.forEach (link) ->
if link.rel is "alternate" and link.type is "text/html"
msg.send link.href

1 change: 1 addition & 0 deletions src/templates/bin/hubot
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"

exec node_modules/.bin/hubot "$@"

1 change: 1 addition & 0 deletions src/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
"optparse": "1.0.3"
}
}

1 change: 1 addition & 0 deletions src/user.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ class User
@[k] = options[k]

module.exports = User

1 change: 1 addition & 0 deletions test/scripts/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ module.exports = (robot) ->
msg.http('http://127.0.0.1').port(9001)
.get() (err, res, body) ->
msg.send body

0 comments on commit 1455b62

Please sign in to comment.