Update bothandler.py

Complete recode of plugin