Permalink
Browse files

cleaned up listing to just use one message

  • Loading branch information...
mulvaney committed Oct 28, 2011
1 parent e62123a commit 4f4d36d548ee5b987bc5b2358acbae14c4c1b568
Showing with 2 additions and 4 deletions.
  1. +2 −4 scripts/meme.coffee
View
@@ -61,10 +61,8 @@ module.exports = (robot) ->
msg.send "Commands:\n meme list\n meme create \"generator\" \"text0\" \"text1\""
robot.respond /(meme )list/i, (msg) ->
- msg.send "Available generators:"
- for generator of generators
- msg.send generator
-
+ list = (g for g of generators)
+ msg.send "Available generators:\n " + list.join("\n ")
robot.respond /(meme )create(.*)/i, (msg) ->
args = msg.match[2]

0 comments on commit 4f4d36d

Please sign in to comment.