Skip to content

Commit

Permalink
feat: make querying the HTTP api not required
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Oct 13, 2024
1 parent f78569c commit e8c5859
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions protocols/satisfactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ export default class satisfactory extends Core {
const nameLength = response.int(2)
state.name = response.part(nameLength).toString('utf-8')

try {
await this.doHttpApiQueries(state)
} catch (e) {
this.logger.debug('HTTP API query failed.')
this.logger.debug(e)
}
}

async doHttpApiQueries (state) {
const headers = {
'Content-Type': 'application/json'
}
Expand Down

0 comments on commit e8c5859

Please sign in to comment.