Starts the bot and runs an infinite loop