Update bot.php

Moving the checks