Update bot_lib.py

Update new version.