script/remember.rb in boty-0.0.12 vs script/remember.rb in boty-0.0.13

- old
+ new

@@ -1,16 +1,18 @@ -desc "remember: I'm at the dentist", I18n.t("scripts.remember", name: name) +desc I18n.t("scripts.remember.command"), + I18n.t("scripts.remember.desc", name: name) respond(/remember(:?) (.+)/i) do |message| brain[:user] ||= {} brain[:user][message.user.name] ||= [] brain[:user][message.user.name] << message.match[2] - im "No worries, your secrets aren't safe with me... oh wait..." + im I18n.t("scripts.remember.response") end -desc "about user julian", I18n.t("scripts.about") +desc I18n.t("scripts.about.command"), I18n.t("scripts.about.desc") respond(/about (\w+\b)(:?) (.+)/i) do |message| user = message.match[3] - im "I'm glad you need my knowlege on #{message.match[1]}, #{message.user.name}." - im "I can tell you somethings about #{user}." - im "What I know... lets see..." + im I18n.t "scripts.about.response", + brain_area: message.match[1], + user_asking: message.user.name, + user_about: user brain[message.match[1].to_sym][user].each do |info| im info end end