Skip to content

Commit

Permalink
Removing useless scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
luisuribe committed Oct 10, 2012
1 parent acfbbfb commit b6ca128
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 420 deletions.
44 changes: 0 additions & 44 deletions scripts/google-images.coffee

This file was deleted.

42 changes: 0 additions & 42 deletions scripts/httpd.coffee

This file was deleted.

5 changes: 1 addition & 4 deletions scripts/karma.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
# Commands:
# <thing>++ - give thing some karma
# <thing>-- - take away some of thing's karma
# hubot karma <thing> - check thing's karma (if <thing> is omitted, show the top 5)
# hubot karma empty <thing> - empty a thing's karma
# hubot karma best - show the top 5
# hubot karma worst - show the bottom 5
# !top - show the top 5
#
# Author:
# stuartf
Expand Down
6 changes: 3 additions & 3 deletions scripts/lastfm_np.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# HUBOT_LASTFM_APIKEY
#
# Commands:
# hubot what's playing <last FM user> - Returns song name and artist
# !lastfm <last FM user> - Returns song name and artist
#
# Author:
# guilleiguaran
Expand All @@ -27,7 +27,7 @@ module.exports = (robot) ->
msg.send results.message
return
song = results.recenttracks.track[0]
msg.reply "Playing #{msg} #{song.name} by #{song.artist['#text']}"
msg.reply "Playing: #{song.name} by #{song.artist['#text']}"

robot.hear /\!np/i, (msg) ->
user = msg.message.user.name
Expand All @@ -40,4 +40,4 @@ module.exports = (robot) ->
msg.send results.message
return
song = results.recenttracks.track[0]
msg.reply "Playing #{song.name} by #{song.artist['#text']}"
msg.reply "Playing: #{song.name} by #{song.artist['#text']}"
26 changes: 0 additions & 26 deletions scripts/maps.coffee

This file was deleted.

22 changes: 0 additions & 22 deletions scripts/math.coffee

This file was deleted.

14 changes: 4 additions & 10 deletions scripts/ping.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@
# hubot die - End hubot process

module.exports = (robot) ->
robot.respond /PING$/i, (msg) ->
msg.send "PONG"

robot.respond /ECHO (.*)$/i, (msg) ->
msg.send msg.match[1]

robot.respond /TIME$/i, (msg) ->
robot.hear /\!time$/i, (msg) ->
msg.send "Server time is: #{new Date()}"

robot.respond /DIE$/i, (msg) ->
msg.send "Goodbye, cruel world."
process.exit 0
robot.respond /DIE$/i, (msg) ->
msg.reply "Na na na *dances"
#process.exit 0

25 changes: 0 additions & 25 deletions scripts/pugme.coffee

This file was deleted.

85 changes: 0 additions & 85 deletions scripts/roles.coffee

This file was deleted.

24 changes: 12 additions & 12 deletions scripts/storage.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
# hubot show storage - Display the contents that are persisted in the brain


Util = require "util"
// Util = require "util"

module.exports = (robot) ->
robot.respond /show storage$/i, (msg) ->
output = Util.inspect(robot.brain.data, false, 4)
msg.send output
// module.exports = (robot) ->
// robot.respond /show storage$/i, (msg) ->
// output = Util.inspect(robot.brain.data, false, 4)
// msg.send output

robot.respond /show users$/i, (msg) ->
response = ""
// robot.respond /show users$/i, (msg) ->
// response = ""

for own key, user of robot.brain.data.users
response += "#{user.id} #{user.name}"
response += " <#{user.email_address}>" if user.email_address
response += "\n"
// for own key, user of robot.brain.data.users
// response += "#{user.id} #{user.name}"
// response += " <#{user.email_address}>" if user.email_address
// response += "\n"

msg.send response
// msg.send response

Loading

0 comments on commit b6ca128

Please sign in to comment.