Really thank you for the PR and your contributions.
I need to ask you to adjust only one thing: in the possibleTeams, where the API call happens, it need to send the username to the API and right now it will send multiple username and that would be a problem. Can you please add also the account as input to the getBattlesWithRuleset function? If you can also please DM me via telegram or discord I would have something else to share with you.
Add bugfix as requested bugfix API calls