node-gamedig/protocols/palworld.js
Sebastian Schmidt 67e0cd8809
Fix: Palworld results - Name of the server is empty (#497)
* Fix: Palworld results - Name of the server is empty

* #497 - refactor of feedback

* #497 - refactor of feedback from Cosmin
2024-01-21 23:16:56 +02:00

18 lines
489 B
JavaScript

import Epic from './epic.js'
export default class palworld extends Epic {
constructor () {
super()
// OAuth2 credentials extracted from Palworld files.
this.clientId = 'xyza78916PZ5DF0fAahu4tnrKKyFpqRE'
this.clientSecret = 'j0NapLEPm3R3EOrlQiM8cRLKq3Rt02ZVVwT0SkZstSg'
this.deploymentId = '0a18471f93d448e2a1f60e47e03d3413'
this.authByExternalToken = true
}
async run (state) {
await super.run(state)
state.name = state.raw.attributes.NAME_s
}
}