desc "remember: I'm at the dentist", "Instructs #{name} about something happening with the user." 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..." end desc "about user julian", "Retrieves information stored in the brain section :user for \"julian\"." 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..." brain[message.match[1].to_sym][user].each do |info| im info end end