feat: Renown add support (#684)

* add renown support

* add changelog entry
This commit is contained in:
Anthony 2025-03-22 13:25:41 -07:00 committed by GitHub
parent e6b959a4d7
commit 099f7107cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 2 deletions

20
protocols/renown.js Normal file
View file

@ -0,0 +1,20 @@
import Epic from './epic.js'
export default class renown extends Epic {
constructor () {
super()
// OAuth2 credentials provided by the game developer.
this.clientId = 'xyza7891XjE03sj3B404z0iQfQ4efjUj'
this.clientSecret = '2YY7STKJ5wJuFIyR8TaXaBPfhHZiAY13YuNPSIn+0WY'
this.deploymentId = '472a8286c61c408ca5ca1ec0401f07b7'
this.authByExternalToken = true
}
async run (state) {
await super.run(state)
state.name = state.raw.attributes.SERVERNAME_s
state.password = state.raw.attributes.PASSWORD_b
state.version = state.raw.attributes.SERVERVERSION_s
}
}