Pre-infection, rectal Tnf levels were lowest in suboptimal-fat diet bats, suggesting diet-driven variation in gut inflammation. Here, TNF is linked to infection.