module Meta  
  def self.interpret(command)
    responses = []
    
    if command.match(/^(what\s+)?version(\s+are\s+you)?$/)
      responses << {
        :say => $VERSION,
        :explanation => "Gets Betty's version."
      }
    end
    
    if command.match(/^whats?\s+(?:is\s+)?your\s+(website|url|github|repo)(\s+again\?)?$/) ||
       command.match(/^(website|url)$/)
      responses << {
        :say => $URL,
        :explanation => "Gets Betty's website."
      }
    end
    
    responses
  end

  def self.help
    commands = []
    commands << {
      :category => "Meta",
      :usage => ["- betty what version are you (or just betty version)",
      "- betty whats your github again"]
    }
    commands
  end
end

$executors << Meta
