refactor plugin init and remove bot from events