Cleaned up bot.py
Fixed code for hooking predefined functions