feat: update squad support to eos (#731)

This commit is contained in:
Keith 2025-09-02 21:55:22 +10:00 committed by GitHub
parent 7823b2da12
commit 87f7c09705
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 25 additions and 4 deletions

20
protocols/squad.js Normal file
View file

@ -0,0 +1,20 @@
import Epic from './epic.js'
export default class squad extends Epic {
constructor () {
super()
// OAuth2 credentials extracted by intercepting Squad traffic.
this.clientId = 'xyza7891J7d3GU8ZIwCoC5xdBsdoqVWA'
this.clientSecret = '4SLVBqAm09q776SIlQRTD6moM/bnGAWhDSqOxJAIS0s'
this.deploymentId = '5dee4062a90b42cd98fcad618b6636c2'
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.GAMEVERSION_s
}
}