Sha256: 0ee7474cbbf411c4b1dddf06d9685ae464b3d4150e1e213ec4b46e6a9a8ed330
Contents?: true
Size: 674 Bytes
Versions: 9
Compression:
Stored size: 674 Bytes
Contents
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
Version data entries
9 entries across 9 versions & 1 rubygems