script/remember.rb in boty-0.0.15 vs script/remember.rb in boty-0.0.16
- old
+ new
@@ -11,7 +11,9 @@
command(/about (\w+\b)(:?) (.+)/i) do |brain_area, _, user_about|
im I18n.t "scripts.about.response",
brain_area: brain_area,
user_asking: user.name,
user_about: user_about
- brain[message.match[1].to_sym][user_about].each do |info| im info end
+ im brain[brain_area.to_sym][user_about].reduce("```\n") { |all_about, info|
+ all_about << " - #{info}"
+ } + "\n```"
end