mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
feat: update squad support to eos (#731)
This commit is contained in:
parent
7823b2da12
commit
87f7c09705
5 changed files with 25 additions and 4 deletions
20
protocols/squad.js
Normal file
20
protocols/squad.js
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue