Update bot.php

Fix wrong access check.