Closed saddiqs1 closed 1 year ago
Thinking about it, the code could probably be cleaned up a little more to make the calls a bit more modular and clear for when future calls are added, i.e. moving fetch(hero: Omit<Hero, 'then'>, url: string): Promise<any>
from player.ts
to a generic helper file somewhere, and then having player.ts
purely responsible for retrieving information related to a players esea profile. You could then make a seperate teams.ts
file for example in the future which contains calls to retrieve team info
Thanks for this. The code could certainly be cleaned a lot, but I currently have no intention of building this much further than it is currently. But if you need some features added feel free to open a pull request. :)
:tada: This PR is included in version 1.2.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
getPlayerFromSteamId64 method, fixed typescript/linting errors, updated readme