From fda8fa027743fc53933ab91be9656b6fe33bd40f Mon Sep 17 00:00:00 2001 From: Ahmed Elnaiem Date: Sat, 6 Oct 2012 18:02:24 -0400 Subject: [PATCH 1/2] small change in print format --- node_modules/hubot-scripts/src/scripts/food.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node_modules/hubot-scripts/src/scripts/food.coffee b/node_modules/hubot-scripts/src/scripts/food.coffee index d7dcda7..6fa375f 100644 --- a/node_modules/hubot-scripts/src/scripts/food.coffee +++ b/node_modules/hubot-scripts/src/scripts/food.coffee @@ -54,7 +54,7 @@ print_restaurants = (restaurants) -> lines = [ "---------- Restaurants -----------" for restaurant in restaurants - join_non_empty ' - ', "#{restaurant.id}. #{restaurant.na}" + join_non_empty ' - ', "#{restaurant.na}" ] _(lines).flatten().join '\n' @@ -65,7 +65,7 @@ print_menu = (restaurant) -> join_non_empty ' - ', category.name, category.descrip "-----------------------------" for item in category.children - join_non_empty ' - ', "#{item.id}. #{item.name}", item.descrip + join_non_empty ' - ', "#{item.name}", item.descrip ] _(lines).flatten().join '\n' @@ -75,7 +75,7 @@ print_order = (restaurant, orders) -> "Phone Number: #{restaurant.cs_contact_phone}" "------------ Orders -------------" for order, index in orders - "#{index}.#{order.item.name} (Ordered by #{order.orderer})" + "#{index+1}. #{order.item.name} (Ordered by #{order.orderer})" ] _(lines).flatten().join '\n' From f9570c86005d7f084eed91868148586300a65926 Mon Sep 17 00:00:00 2001 From: Ryan Menezes Date: Sat, 6 Oct 2012 18:04:40 -0400 Subject: [PATCH 2/2] bugfyx --- node_modules/hubot-scripts/src/scripts/food.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/hubot-scripts/src/scripts/food.coffee b/node_modules/hubot-scripts/src/scripts/food.coffee index 6fa375f..ed1a795 100644 --- a/node_modules/hubot-scripts/src/scripts/food.coffee +++ b/node_modules/hubot-scripts/src/scripts/food.coffee @@ -187,7 +187,7 @@ module.exports = (robot) -> (r) -> [r.na ? ''].concat (r.cu ? []) get_item_fuzzy = (fuzz, menu, msg, pretty, c) -> get_obj_fuzzy fuzz, (_.flatten _.pluck menu, 'children'), msg, pretty, c, - -> "See the menu above for options.", + -> msg.send "See the menu above for options.", (i) -> [i.name] unlessErr = (msg, c) ->