A first working bot with a lot of minor issues, like not listening to all events producing resources when waiting for resources.