Update bot_lib.py

Fix: limit edit count, max and min. It's done through API, TS' mysql is unnecessary.