Update bot.js

Added API.on, users leaving, users joining, friends joining.