This bot reads players' damages from multiple wars and then pays each player accordingly.
It is also generated an excel file with each party member's data (ID, Name, Level and Damage) and their payment. This file is then sent to the person's email.
You can check the fully functional bot here: bot.