making main() take a function as argument was stupid, simply take a bot instance