desc I18n.t("scripts.remember.command"), I18n.t("scripts.remember.desc", name: name) command(/remember(:?) (.+)/i) do |_, stuff| brain[:user] ||= {} brain[:user][user.name] ||= [] brain[:user][user.name] << stuff im I18n.t("scripts.remember.response") end desc I18n.t("scripts.about.command"), I18n.t("scripts.about.desc") 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 im brain[brain_area.to_sym][user_about].reduce("```\n") { |all_about, info| all_about << " - #{info}" } + "\n```" end