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

Commit

Permalink
Update "l" scripts help comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tombell committed Jun 9, 2012
1 parent 706bd95 commit 74894f3
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 35 deletions.
17 changes: 15 additions & 2 deletions src/scripts/likeaboss.coffee
@@ -1,4 +1,17 @@
# LIKE A BOSS
#
# Description:
# LIKE A BOSS
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
#
# Author:
# jrgifford
#

images = [
Expand All @@ -16,4 +29,4 @@ images = [

module.exports = (robot) ->
robot.hear /like a boss/i, (msg) ->
msg.send msg.random images
msg.send msg.random images
18 changes: 16 additions & 2 deletions src/scripts/linsanity.coffee
@@ -1,5 +1,19 @@
# Display a picture of Jeremy Lin if anyone invokes "linsanity" or says "linspire"
# Cause Lin is Linspiring!
#
# Description:
# Display a picture of Jeremy Lin if anyone invokes "linsanity" or
# says "linspire". Cause Lin is Linspiring!
#
# Dependecies:
# None
#
# Configuration:
# None
#
# Commands:
#
# Author:
# zackyap
#

images = [
"http://i.i.com.com/cnwk.1d/i/tim/2012/02/16/Jeremy_Lin_139046190_620x350.jpg"
Expand Down
31 changes: 20 additions & 11 deletions src/scripts/list-jira-bugs.coffee
@@ -1,16 +1,25 @@
# Get all bugs from JIRA assigned to user
#
# To configure, export the following shell variables
# HUBOT_JIRA_DOMAIN
# HUBOT_JIRA_USER
# HUBOT_JIRA_PASSWORD
# HUBOT_JIRA_ISSUE_TYPES
# HUBOT_JIRA_ISSUE_PRIORITIES
# Description:
# Get all bugs from JIRA assigned to user
#
# hubot list my bugs - Retrieve the list of all a user's bugs from JIRA ('my' is optional)
# hubot list my bugs about <searchterm> - Retrieve list of all a user's bugs from JIRA where the summary or description field contains <phrase> ('my' is optional)
# hubot list my <priority> priority bugs - Retrieve the list of a user's <priority> priority bugs from JIRA ('my' is optional)
# hubot list my <priority> priority bugs about <phrase> - Retrieve list of all a user's <priority> priority bugs from JIRA where the summary or description field contains <phrase> ('my' is optional)
# Dependencies:
# None
#
# Configuration:
# HUBOT_JIRA_DOMAIN
# HUBOT_JIRA_USER
# HUBOT_JIRA_PASSWORD
# HUBOT_JIRA_ISSUE_TYPES
# HUBOT_JIRA_ISSUE_PRIORITIES
#
# Commands:
# hubot list my bugs - Retrieve the list of all a user's bugs from JIRA ('my' is optional)
# hubot list my bugs about <searchterm> - Retrieve list of all a user's bugs from JIRA where the summary or description field contains <phrase> ('my' is optional)
# hubot list my <priority> priority bugs - Retrieve the list of a user's <priority> priority bugs from JIRA ('my' is optional)
# hubot list my <priority> priority bugs about <phrase> - Retrieve list of all a user's <priority> priority bugs from JIRA where the summary or description field contains <phrase> ('my' is optional)
#
# Author:
# crcastle
#

# e.g. "bug|task|sub task|support ticket|new feature|epic"
Expand Down
20 changes: 14 additions & 6 deletions src/scripts/lmgtfy.coffee
@@ -1,15 +1,23 @@
# Tell Hubot to send a user a link to lmgtfy.com
#
# lmgtfy <optional @username> <some query>
# Description:
# Tell Hubot to send a user a link to lmgtfy.com
#
# Examples
# Dependencies:
# None
#
# lmgtfy trollface zomg
# lmgtf @Tyler font kerning
# Configuration:
# None
#
# Commands:
# hubot lmgtfy <optional @username> <some query>
#
# Author:
# phlipper
#

module.exports = (robot) ->
robot.respond /lmgtfy?\s?(?:@(\w*))? (.*)/i, (msg) ->
link = ""
link += "#{msg.match[1]}: " if msg.match[1]
link += "http://lmgtfy.com/?q=#{escape(msg.match[2])}"
msg.send link
msg.send link
25 changes: 19 additions & 6 deletions src/scripts/location-decision-maker.coffee
@@ -1,10 +1,23 @@
# Decides where you should go.
#
# hubot remember <location> as a <group> location - Remembers the location for the group.
# hubot forget <location> as a <group> location - Forgets the location from the group.
# hubot forget all locations for <group> - Forgets all the locations for the group.
# hubot where can we go for <group>? - Returns a list of places that exist for the group.
# hubot where should we go for <group>? - Returns a randomly selected location for the group.
# Description:
# Decides where you should go
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot remember <location> as a <group> location - Remembers the location for the group
# hubot forget <location> as a <group> location - Forgets the location from the group
# hubot forget all locations for <group> - Forgets all the locations for the group
# hubot where can we go for <group>? - Returns a list of places that exist for the group
# hubot where should we go for <group>? - Returns a randomly selected location for the group
#
# Authors:
# lukesmith
#

class Locations
constructor: (@robot) ->
Expand Down
17 changes: 16 additions & 1 deletion src/scripts/lolz.coffee
@@ -1,4 +1,19 @@
# hubot lulz - BRING THE LOLZ from bukk.it
#
# Description:
# None
#
# Dependencies:
# "htmlparser": "1.7.6"
# "soupselect: "0.2.0"
#
# Configuration:
# None
#
# Commands:
# hubot lulz - BRING THE LOLZ from bukk.it
#
# Author:
# dstrelau

Select = require("soupselect").select
HtmlParser = require "htmlparser"
Expand Down
18 changes: 15 additions & 3 deletions src/scripts/look-of-disapproval.coffee
@@ -1,6 +1,19 @@
# Allows Hubot to give a look of disapproval.
#
# hubot lod <name> - gives back the character for the look of disapproval, optionally @name.
# Description:
# Allows Hubot to give a look of disapproval
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot lod <name> - gives back the character for the look of disapproval, optionally @name
#
# Author:
# ajacksified
#

module.exports = (robot) ->
robot.respond /lod\s?(.*)/i, (msg) ->
Expand All @@ -10,4 +23,3 @@ module.exports = (robot) ->
response += " @" + name if name != ""

msg.send(response)

20 changes: 16 additions & 4 deletions src/scripts/lyrics.coffee
@@ -1,9 +1,21 @@
# Grabs snippets of song lyrics.
# Limited to snippets due to copyright stuff.
#
# hubot lyrics for <song> by <artist> - returns snippet of lyrics for this song
# Description:
# Grabs snippets of song lyrics
# Limited to snippets due to copyright stuff
#
# Example: lyrics for purple haze by jimi hendrix
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot lyrics for <song> by <artist> - returns snippet of lyrics for this song
#
# Author:
# mportiz08
#

module.exports = (robot) ->
robot.respond /lyrics for (.*) by (.*)/i, (msg) ->
song = msg.match[1]
Expand Down

0 comments on commit 74894f3

Please sign in to comment.