lib/lita/handlers/whoami.rb in lita-whoami-0.1.3 vs lib/lita/handlers/whoami.rb in lita-whoami-0.1.4

- old
+ new

@@ -22,11 +22,10 @@ def key_for_person name "#{REDIS_KEY}:#{name}" end def describe_everyone(chat) - chat.reply redis.keys - .select { |key| key.include?(REDIS_KEY) } + chat.reply redis.keys(REDIS_KEY + '*') .map { |key| key.split(':').last } .map { |person| person + " is " + get_descriptiors_for(person).join(', ') } .join("\n\n") end