Refactor API
Reduce boilerplate needed for simple bots