Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Update "n" scripts help comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tombell committed Jun 9, 2012
1 parent 3369f7e commit 7e12eb7
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 42 deletions.
17 changes: 14 additions & 3 deletions src/scripts/nettipot.coffee
@@ -1,6 +1,18 @@
#
# hubot nettipot - Send scarring, horrifying image of a nettipot in use.
# Written by @alexpgates
# Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot nettipot - Send scarring, horrifying image of a nettipot in use.
#
# Author
# alexpgates
#

nettipot = "http://i.imgur.com/EIqdZ.gif"
Expand All @@ -15,4 +27,3 @@ module.exports = (robot) ->
msg.send nettipot
msg.send nettipot
msg.send nettipot

30 changes: 18 additions & 12 deletions src/scripts/newrelic.coffee
@@ -1,23 +1,29 @@
# Display current app performance stats from New Relic
#
# You need to set the following variables:
# HUBOT_NEWRELIC_ACCOUNT_ID = "<Account ID>"
# HUBOT_NEWRELIC_APP_ID = "<Application ID>"
# HUBOT_NEWRELIC_API_KEY = "<API Key>"
# Description:
# Display current app performance stats from New Relic
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_NEWRELIC_ACCOUNT_ID
# HUBOT_NEWRELIC_APP_ID
# HUBOT_NEWRELIC_API_KEY
#
# How to find these settings:
# Commands:
# hubot newrelic me - Returns summary application stats from New Relic
#
# Notes:
# How to find these settings:
# After signing into New Relic, select your application
# Given: https://rpm.newrelic.com/accounts/xxx/applications/yyy
# xxx is your Account ID and yyy is your App ID
# Account Settings > API + Web Integrations > API Access > "API key"
#
# TODO:
# - Allow hubot to display all app stats for a given account using the View Applications API call
# https://github.com/newrelic/newrelic_api
# - Allow you to specify the name of the app to fetch metrics for:
# hubot newrelic me "My App Name"
# Author:
# briandoll
#
# hubot newrelic me - Returns summary application stats from New Relic

module.exports = (robot) ->
robot.respond /newrelic me/i, (msg) ->
accountId = process.env.HUBOT_NEWRELIC_ACCOUNT_ID
Expand Down
20 changes: 16 additions & 4 deletions src/scripts/news.coffee
@@ -1,7 +1,20 @@
# Returns the latest news headlines from Google
#
# hubot news - Get the latest headlines
# hubot news <topic> - Get the latest headlines for a specific topic
# Description:
# Returns the latest news headlines from Google
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot news - Get the latest headlines
# hubot news <topic> - Get the latest headlines for a specific topic
#
# Author:
# Matt McCormick
#

module.exports = (robot) ->
robot.respond /news(?: me| on)?\s?(.*)/, (msg) ->
Expand Down Expand Up @@ -40,4 +53,3 @@ module.exports = (robot) ->
catch err
err = "Sorry, but I could not fetch the latest headlines."
cb(response, err)

29 changes: 16 additions & 13 deletions src/scripts/nice.coffee
@@ -1,16 +1,19 @@
# Fill your chat with some kindness
#
# hubot be nice - just gives some love :)

###
found some greate quotes on http://www.quotegarden.com/smiles.html
###

###
Written by Ole 'nesQuick' Michaelis (Ole.Michaelis@googlemail.com)
Follow me on Twitter (@CodeStars)
Digital Pioneers N.V. - WE ARE HIRING (http://digitalpioneers.de/jobs)
###
# Description:
# Fill your chat with some kindness
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot be nice - just gives some love :)
#
# Author:
# nesQuick
#

hugs = [
"You are awesome!",
Expand All @@ -23,4 +26,4 @@ hugs = [
module.exports = (robot)->
robot.respond /be nice/i, (message)->
rnd = Math.floor Math.random() * hugs.length
message.send hugs[rnd]
message.send hugs[rnd]
19 changes: 9 additions & 10 deletions src/scripts/notify.coffee
@@ -1,19 +1,18 @@
# Notifies you by Prowl or NotifyMyAndroid when you're mentioned
#
# To setup your username for notification:
# Description:
# Notifies you by Prowl or NotifyMyAndroid when you're mentioned
#
# Dependencies:
# "prowler": "0.0.3"
#
# Configuration:
# None
#
# Commands:
# hubot notify me by prowl with YOUR_PROWL_API_KEY
# hubot notify me by nma with YOUR_NMA_API_KEY
# hubot list notifiers
#
# Then when this happens in the chat, you'll be notified (assuming
# your name is jim):
#
# Hey @jim, how's it going.
# Congrats @everyone on this cool new thing we deployed.
#
# TODO Hear multiple highlights?
# TODO Hear highlights without @

Prowl = require "prowler"
QS = require "querystring"
Expand Down

0 comments on commit 7e12eb7

Please sign in to comment.