Assuming the task was presented as optional, I certainly wouldn’t do it for nothing. I’d prefer money, by far. I can definitely imagine a scenario where a boss would ask for volunteers for some extra task and offer to “pay them in pizza,” and I might volunteer because HEY PIZZA (on top of my usual paycheck!), but I would not take pizza in lieu of money. Pizza’s delicious but it doesn’t pay the rent.
The texted compliment does not even register on my “will work for ___” scale.