2024-01-20 23:36:05 +01:00
|
|
|
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
|
|
|
|
}
|
2024-01-21 22:16:56 +01:00
|
|
|
|
|
|
|
async run (state) {
|
|
|
|
await super.run(state)
|
|
|
|
state.name = state.raw.attributes.NAME_s
|
2024-01-24 14:18:05 +01:00
|
|
|
state.numplayers = state.raw.attributes.PLAYERS_l
|
2024-01-21 22:16:56 +01:00
|
|
|
}
|
2024-01-20 23:36:05 +01:00
|
|
|
}
|