Don’t treat others the way you don’t like being treated

For example, I hate it when I arrive somewhere, and I am not greeted warmly. Therefore as a consequence, I will not treat others that way.