The role of emotions in online social dilemmas