Galaxypedia-Wiki / ketchupbot-updater

epic galxy pedia updator
MIT License
1 stars 0 forks source link

Add APIManager implementation #44

Closed smallketchup82 closed 6 months ago

smallketchup82 commented 6 months ago

This PR adds an implementation of APIManager and also adds the corresponding interfaces.

Main difference from the legacy code is that this version uses Axios and AxiosRetry to allow for automatic request retrying if a request fails.

smallketchup82 commented 6 months ago

Okay, I forgot to define the types for TurretData. Don't merge this yet

smallketchup82 commented 6 months ago

nothing seems wrong, but shouldn't there be the api to get the ship data for each ship on the gpedia? anyway, i didnt see a problem with the code currently here

you might be right about that... https://robloxgalaxy.wiki/wiki/Special:CargoTables/ShipData i forgot that i set up cargo on the galaxypedia. it should update everytime an edit occurs on a ship infobox template. we might be able to use that and skip the regex matching. but we'd still have to parse the final data so it might not be worth it.

smallketchup82 commented 6 months ago

okay, actually, im just going to block this pr for the time being. seems like we're going to go with an alternative websocket thing now instead of api requests.

smallketchup82 commented 6 months ago

handing this pr off to @SeaswimmerTheFsh

smallketchup82 commented 6 months ago

taking this back from @SeaswimmerTheFsh