Change in way binds are called

No calling external functions in order to rehash the bot, we use
anonymous functions.
Adapted example bindings